diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0bcd73c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "unbound-telemetry"] + path = unbound-telemetry + url = https://github.com/svartalf/unbound-telemetry.git + branch = master diff --git a/conf/prometheus.yml b/conf/prometheus.yml new file mode 100644 index 0000000..d167cca --- /dev/null +++ b/conf/prometheus.yml @@ -0,0 +1,14 @@ +scrape_configs: + - 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" diff --git a/docker-compose.yml b/docker-compose.yml index d13d580..b99db1c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,13 +34,24 @@ services: - 127.0.0.1:84:3000 restart: always - #prometheus: - # image: prom/prometheus:latest - # 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" + 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 diff --git a/unbound-telemetry b/unbound-telemetry new file mode 160000 index 0000000..7f1b6d4 --- /dev/null +++ b/unbound-telemetry @@ -0,0 +1 @@ +Subproject commit 7f1b6d4e9e4b6a3216a78c23df745bcf8fc84021