42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
# Alertmanager configuration
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets:
|
|
- alertmanager:9093
|
|
|
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
|
rule_files:
|
|
- "/etc/prometheus/rules/alerts.yml"
|
|
|
|
# A scrape configuration containing exactly one endpoint to scrape:
|
|
scrape_configs:
|
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
|
- job_name: "prometheus"
|
|
# metrics_path defaults to '/metrics'
|
|
# scheme defaults to 'http'.
|
|
static_configs:
|
|
- targets: ["localhost:9090"]
|
|
|
|
# Scrape configuration for the Meldestelle application
|
|
- job_name: "meldestelle-api"
|
|
metrics_path: /actuator/prometheus
|
|
scrape_interval: 10s
|
|
basic_auth:
|
|
username: ${METRICS_USER:-metrics}
|
|
password: ${METRICS_PASSWORD:-metrics-password-dev}
|
|
static_configs:
|
|
- targets: ["server:8081"]
|
|
labels:
|
|
application: "meldestelle"
|
|
service: "api-gateway"
|
|
|
|
# Node exporter for host metrics (if added later)
|
|
# - job_name: "node-exporter"
|
|
# static_configs:
|
|
# - targets: ["node-exporter:9100"]
|