From 7769ab8998cb77cf9928ecdd1f309adba7ae9eed Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Tue, 26 Mar 2024 12:02:13 +0800 Subject: [PATCH] vault backup: 2024-03-26 12:02:13 --- 05. 資料收集/Linux/架站/Grafana-prometheus.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 位置。