diff --git a/custom/prometheus/prometheus.yml b/custom/prometheus/prometheus.yml index 623e9b7..5e5f0fd 100644 --- a/custom/prometheus/prometheus.yml +++ b/custom/prometheus/prometheus.yml @@ -19,16 +19,13 @@ rule_files: scrape_configs: # The job name is added as a label `job=` to any timeseries scraped from this config. - job_name: 'prometheus' - - # metrics_path defaults to '/metrics' - # scheme defaults to 'http'. - static_configs: - targets: ['localhost:9090'] - job_name: 'docker' - # metrics_path defaults to '/metrics' - # scheme defaults to 'http'. - static_configs: - - targets: ['neo.faulty.nl:9393'] \ No newline at end of file + - targets: ['neo.faulty.nl:9393'] + + - job_name: node + static_configs: + - targets: ['prom-node:9100'] \ No newline at end of file diff --git a/docker-compose.utils.yml b/docker-compose.utils.yml index 6eda823..f9cb7e7 100644 --- a/docker-compose.utils.yml +++ b/docker-compose.utils.yml @@ -104,5 +104,10 @@ services: networks: - metrics + prom-node: + image: prom/node-exporter + networks: + - metrics + networks: metrics: \ No newline at end of file