diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 65a222de5745c1b68478cef7d0865f23431bb8c2..456c99ac819a01175de770235c065d797a4680b6 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -6,9 +6,9 @@ global: external_labels: monitor: 'codelab-monitor' -# A scrape configuration containing exactly one endpoint to scrape: -# Here it's Prometheus itself. +# Prometheus configuration of targets which will be scraped scrape_configs: +# Chat server application - job_name: 'chatroom' honor_labels: true scrape_interval: 5s @@ -16,22 +16,18 @@ scrape_configs: static_configs: - targets: ['192.168.2.34:5000'] +# Node-exporter - job_name: 'node-exporter' honor_labels: true scrape_interval: 5s # scheme: https static_configs: - targets: ['192.168.2.34:9100'] - + +# MongoDB-exporter - job_name: 'mongodb-exporter' honor_labels: true scrape_interval: 5s #scheme: https static_configs: - - targets: ['192.168.2.34:9216'] - -#remote_write: -#- url: "localhost:3000" -# basic_auth: -# username: "admin" -# password: "admin" \ No newline at end of file + - targets: ['192.168.2.34:9216'] \ No newline at end of file