Browse Source

bugfix: config+s

wjinan 10 months ago
parent
commit
c7218fba65
1 changed files with 3 additions and 3 deletions
  1. 3 3
      code/prometheus/prometheus.yml

+ 3 - 3
code/prometheus/prometheus.yml

@@ -30,7 +30,7 @@ scrape_configs:
   #NodeExporter(9100) //todo 填写端口与地址
   - job_name: "NodeExporter"
     metrics_path: /metrics
-    static_config:
+    static_configs:
       - targets: 'localhost: 9100'
       - targets: ''
       - targets: ''
@@ -39,7 +39,7 @@ scrape_configs:
   #clickhouse(9363) //todo 填写端口与地址 (配置文件中prometheus收集指标的端口 默认为9363)
   - job_name: "clickhouse"
     metrics_path: /metrics
-    static_config:
+    static_configs:
       - targets:
           - 'target1:port'
       - targets:
@@ -48,7 +48,7 @@ scrape_configs:
   #clickhousekeeper() //todo : 填写端口与地址
   - job_name: "clickhouse-keeper"
     metrics_path: /metrics
-    static_config:
+    static_configs:
       - targets:
           - 'target1:port'
       - targets: