Compare commits

...

10 Commits

Author SHA1 Message Date
e2635da338 Postgres 14 2022-04-09 00:09:02 -05:00
ecaefcff77 Pin postgres to 13 2021-10-01 12:35:55 -05:00
2817ad5687 Update unbound-telemetry 2021-09-22 19:29:44 -05:00
7c6e51d542 Set network bridge name 2021-09-10 16:59:11 -05:00
2092b8e687 Add prometheus node exporter 2021-09-08 18:19:04 -05:00
4f1ba936fb Update unbound-telemetry 2021-08-25 17:12:33 -05:00
416a0ddc86 Add proper healthcheck to unbound telemetry + add depends_on 2021-08-20 15:48:51 -05:00
63373124e7 Add prometheus for caddy and unbound exporters 2021-08-16 02:38:40 -05:00
28edff04f6 Move prometheus back to synapse 2021-08-07 11:50:00 -05:00
1459bbcbae Add prometheus.yml 2021-08-02 03:07:59 -05:00
4 changed files with 50 additions and 2 deletions

4
.gitmodules vendored Normal file
View 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
View 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"

View File

@ -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

Submodule unbound-telemetry added at 19e53b0582