Spaces:
Paused
Paused
leo wu commited on
Update prometheus.yml
Browse files- prometheus.yml +7 -24
prometheus.yml
CHANGED
|
@@ -1,27 +1,10 @@
|
|
| 1 |
-
# my global config
|
| 2 |
global:
|
| 3 |
-
scrape_interval:
|
| 4 |
-
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
| 5 |
-
# scrape_timeout is set to the global default (10s).
|
| 6 |
|
| 7 |
-
# Alertmanager configuration
|
| 8 |
-
alerting:
|
| 9 |
-
alertmanagers:
|
| 10 |
-
- static_configs:
|
| 11 |
-
- targets:
|
| 12 |
-
# - alertmanager:9093
|
| 13 |
-
|
| 14 |
-
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
| 15 |
-
rule_files:
|
| 16 |
-
# - "first_rules.yml"
|
| 17 |
-
# - "second_rules.yml"
|
| 18 |
-
|
| 19 |
-
# A scrape configuration containing exactly one endpoint to scrape:
|
| 20 |
-
# Here it's Prometheus itself.
|
| 21 |
scrape_configs:
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 1 |
global:
|
| 2 |
+
scrape_interval: 15s
|
|
|
|
|
|
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
scrape_configs:
|
| 5 |
+
- job_name: 'prometheus'
|
| 6 |
+
static_configs:
|
| 7 |
+
- targets: ['localhost:9090']
|
| 8 |
+
- job_name: 'node'
|
| 9 |
+
static_configs:
|
| 10 |
+
- targets: ['node_exporter:9100']
|