dragonfly/tools/local/monitoring/prometheus/prometheus.yml

56 lines
1.4 KiB
YAML

# my global config
global:
scrape_interval: 5s
evaluation_interval: 5s
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'my-project'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
# rule_files:
# - 'alert.rules'
# - "first.rules"
# - "second.rules"
# alert
# alerting:
# alertmanagers:
# - scheme: http
# static_configs:
# - targets:
# - "alertmanager:9093"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: dragonfly
scrape_interval: 1s
static_configs:
- targets: ['host.docker.internal:6379']
- job_name: 'prometheus'
scrape_interval: 1s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
scrape_interval: 1s
static_configs:
- targets: ['node-exporter:9100']
labels:
instance: node
- job_name: 'memcached-exporter'
scrape_interval: 1s
static_configs:
- targets: ['memcached-exporter:9150']
- job_name: 'redis-exporter'
scrape_interval: 1s
static_configs:
- targets: ['redis-exporter:9121']