diff --git a/server/config/prometheus/prometheus.yml b/server/config/prometheus/prometheus.yml index 17609cf..f4cd642 100644 --- a/server/config/prometheus/prometheus.yml +++ b/server/config/prometheus/prometheus.yml @@ -2,6 +2,34 @@ global: scrape_interval: 60s scrape_configs: + + # scrape hosts + - job_name: 'joey-seedbox' + scrape_interval: 5s + static_configs: + - targets: ['joey-seedbox.local:9100'] + + - job_name: 'joey-server' + scrape_interval: 5s + static_configs: + - targets: ['joey-server.local:9100'] + + - job_name: 'pihole' + scrape_interval: 5s + static_configs: + - targets: ['pihole.local:9100'] + + - job_name: 'jafner.tools' + scrape_interval: 5s + static_configs: + - targets: ['143.110.151.123:9100'] + + - job_name: 'router' + scrape_interval: 5s + static_configs: + - targets: ['192.168.1.1:9100'] + + # scrape applications - job_name: 'prometheus' scrape_interval: 60s static_configs: @@ -13,12 +41,6 @@ scrape_configs: - targets: ['192.168.1.23:28080'] metrics_path: "/metrics" - - job_name: '5e.jafner.tools' - scrape_interval: 5s - static_configs: - - targets: ['5e-jafner-tools:9117'] - metrics_path: "/metrics" - - job_name: 'pihole.jafner.net' scrape_interval: 5s static_configs: @@ -38,31 +60,18 @@ scrape_configs: static_configs: - targets: ['mc-monitor:8080'] - - job_name: 'jafner.tools' - scrape_interval: 5s - static_configs: - - targets: ['143.110.151.123:9100'] - - job_name: 'jafner.chat' scrape_interval: 5s static_configs: - targets: ['143.110.157.109:9100'] - - job_name: 'joey-seedbox' + - job_name: '5e.jafner.tools' scrape_interval: 5s static_configs: - - targets: ['joey-seedbox.local:9100'] - - - job_name: 'joey-server' - scrape_interval: 5s - static_configs: - - targets: ['joey-server.local:9100'] - - - job_name: 'pihole' - scrape_interval: 5s - static_configs: - - targets: ['pihole.local:9100'] + - targets: ['5e-jafner-tools:9117'] + metrics_path: "/metrics" + # scrape IoT devices - job_name: 'tasmota' scrape_interval: 5s static_configs: