diff --git a/05. 資料收集/Linux/架站/Grafana-prometheus.md b/05. 資料收集/Linux/架站/Grafana-prometheus.md index 072891b..9dba81e 100644 --- a/05. 資料收集/Linux/架站/Grafana-prometheus.md +++ b/05. 資料收集/Linux/架站/Grafana-prometheus.md @@ -65,6 +65,22 @@ datasources: access: proxy ``` +要注意 `url: http://192.168.1.24:8083` 這一行,要更新 IP 位置。 +# `prometheus.yml` -# `prometheus.yml` \ No newline at end of file +```yaml highlight:"11" +# prometheus.yml +global: + scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. + evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. + # scrape_timeout is set to the global default (10s). + +scrape_configs: + - job_name: 'node-exporter-local' + scrape_interval: 5s + static_configs: + - targets: ['192.168.1.24:8084'] +``` + +要注意 `- targets: ['192.168.1.24:8084']` 這一行,要更新 IP 位置。