Compare commits
12 Commits
4d319919d9
...
master
Author | SHA1 | Date | |
---|---|---|---|
e2635da338 | |||
ecaefcff77 | |||
2817ad5687 | |||
7c6e51d542 | |||
2092b8e687 | |||
4f1ba936fb | |||
416a0ddc86 | |||
63373124e7 | |||
28edff04f6 | |||
1459bbcbae | |||
15fb0079c1 | |||
de0dfd63c6 |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.env
|
||||
data/
|
||||
misc/
|
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
[submodule "unbound-telemetry"]
|
||||
path = unbound-telemetry
|
||||
url = https://github.com/svartalf/unbound-telemetry.git
|
||||
branch = master
|
19
conf/prometheus.yml
Normal file
19
conf/prometheus.yml
Normal file
@ -0,0 +1,19 @@
|
||||
scrape_configs:
|
||||
- job_name: "node_exporter"
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["host.docker.internal:9100"]
|
||||
|
||||
- job_name: "caddy"
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["host.docker.internal:2020"]
|
||||
labels:
|
||||
instance: "boba.best"
|
||||
|
||||
- job_name: "unbound"
|
||||
scrape_interval: 15s
|
||||
static_configs:
|
||||
- targets: ["unbound-telemetry:9167"]
|
||||
labels:
|
||||
instance: "boba.best"
|
70
docker-compose.yml
Normal file
70
docker-compose.yml
Normal file
@ -0,0 +1,70 @@
|
||||
version: '3'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
environment:
|
||||
- POSTGRES_USER=grafana
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB=grafanadb
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data/
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: pg_isready -U grafana -d grafanadb
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
user: "1000"
|
||||
volumes:
|
||||
- ./data/grafana:/var/lib/grafana
|
||||
- ./data/grafana-config:/etc/grafana
|
||||
ports:
|
||||
- 127.0.0.1:84:3000
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: grafana_prometheus
|
||||
restart: always
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
volumes:
|
||||
- ./conf/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./data/prometheus:/prometheus
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
unbound-telemetry:
|
||||
build: unbound-telemetry
|
||||
restart: always
|
||||
command:
|
||||
- uds
|
||||
- --control-interface
|
||||
- /data/remote-control.sock
|
||||
volumes:
|
||||
- ./data/unbound-telemetry:/data
|
||||
healthcheck:
|
||||
test: curl --silent --fail http://127.0.0.1:9167/healthcheck || exit 1
|
||||
interval: 10s
|
||||
timeout: 1s
|
||||
retries: 5
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver_opts:
|
||||
com.docker.network.bridge.name: br-grafana
|
1
unbound-telemetry
Submodule
1
unbound-telemetry
Submodule
Submodule unbound-telemetry added at 19e53b0582
Reference in New Issue
Block a user