Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit 4e54fbd

Browse files
committed
fix: reduce prometheus mariadb scraping
1 parent d1faa0f commit 4e54fbd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

roles/monitoring/templates/prometheus.yml.j2

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ global:
55
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
66
# scrape_timeout is set to the global default (10s).
77

8-
# Alertmanager configuration
9-
alerting:
10-
alertmanagers:
11-
- static_configs:
12-
- targets: ["localhost:9093"]
13-
148
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
159
rule_files:
1610

1711
scrape_configs:
1812
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
1913
- job_name: "prometheus"
20-
2114
static_configs:
2215
- targets: ["localhost:{{prometheus_port}}"]
2316

@@ -26,5 +19,6 @@ scrape_configs:
2619
- targets: ["node_exporter:9100"]
2720

2821
- job_name: "mysql"
22+
scrape_interval: 60s
2923
static_configs:
3024
- targets: ['db_exporter:9104']

0 commit comments

Comments
 (0)