From 291094c04dc16fab923a7527343e14e41b3c6a35 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 28 Nov 2023 00:20:10 -0800 Subject: [PATCH] Add ping exporter to druid --- .../config/monitoring/docker-compose.yml | 9 +++++++ .../druid/config/monitoring/exporter-ping.yml | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 homelab/druid/config/monitoring/exporter-ping.yml diff --git a/homelab/druid/config/monitoring/docker-compose.yml b/homelab/druid/config/monitoring/docker-compose.yml index 40d88009..722f7872 100644 --- a/homelab/druid/config/monitoring/docker-compose.yml +++ b/homelab/druid/config/monitoring/docker-compose.yml @@ -8,3 +8,12 @@ services: - 50417:9417 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro + + exporter-ping: + image: czerwonk/ping_exporter + container_name: monitoring_exporter-ping + restart: "no" + ports: + - 50418:9427 + volumes: + - ./exporter-ping.yml:/config/config.yml \ No newline at end of file diff --git a/homelab/druid/config/monitoring/exporter-ping.yml b/homelab/druid/config/monitoring/exporter-ping.yml new file mode 100644 index 00000000..537043eb --- /dev/null +++ b/homelab/druid/config/monitoring/exporter-ping.yml @@ -0,0 +1,26 @@ +targets: + - 8.8.8.8 # google primary + - 1.1.1.1 # cloudflare primary + - 9.9.9.9 # quad9 primary + - jafner.net # homelab public ip + - jafner.tools # droplet public ip + - tukw-dsl-gw76.tukw.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/63.231.10.76) + - tukw-agw1.inet.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/63.226.198.89) + - sea-edge-15.inet.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/205.171.0.59) + - 4.68.38.173 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.68.38.173) + - 4.69.219.210 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.69.219.210) + - 4.30.140.62 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.30.140.62) + - 172.71.144.3 # Owned by CLOUDFLARENET (ASN: 13335) (https://www.findip-address.com/172.71.144.3) + +dns: + refresh: 1m + nameserver: 1.1.1.1 + +ping: + interval: 5s + timeout: 3s + history-size: 5 + payload-size: 32 + +options: + disableIPv6: true \ No newline at end of file