Compare commits
10 Commits
15fb0079c1
...
master
Author | SHA1 | Date | |
---|---|---|---|
e2635da338 | |||
ecaefcff77 | |||
2817ad5687 | |||
7c6e51d542 | |||
2092b8e687 | |||
4f1ba936fb | |||
416a0ddc86 | |||
63373124e7 | |||
28edff04f6 | |||
1459bbcbae |
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"
|
@ -1,7 +1,7 @@
|
||||
version: '3'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
image: postgres:14
|
||||
environment:
|
||||
- POSTGRES_USER=grafana
|
||||
- POSTGRES_PASSWORD
|
||||
@ -33,14 +33,38 @@ services:
|
||||
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:
|
||||
- ./data/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./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