Files
mktxp-stack/prometheus/prometheus.yml
Arseniy Kuznetsov c90d2db2f0 Update prometheus.yml
2022-11-07 17:44:55 +01:00

40 lines
916 B
YAML
Executable File

# global config
global:
scrape_interval: 45s # Set the scrape interval to every 45 seconds. Default is every 1 minute.
scrape_timeout: 30s
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
external_labels:
origin_prometheus: mktxp
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus:9090']
- job_name: 'grafana'
static_configs:
- targets: ['grafana:3000']
- job_name: 'loki'
static_configs:
- targets: ['loki:3100']
- job_name: 'promtail'
static_configs:
- targets: ['promtail:9080']
- job_name: 'mktxp'
static_configs:
- targets: ['mktxp:49090']