Compare commits

...

12 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
15fb0079c1 Move prometheus from synapse to here 2021-08-02 02:45:56 -05:00
de0dfd63c6 Add files 2021-08-02 01:25:47 -05:00
5 changed files with 97 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.env
data/
misc/

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"

70
docker-compose.yml Normal file
View 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

Submodule unbound-telemetry added at 19e53b0582