-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprometheus.yml
More file actions
36 lines (32 loc) · 1.3 KB
/
Copy pathprometheus.yml
File metadata and controls
36 lines (32 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Prometheus scrape config for Docker Dash's /api/metrics endpoint.
# Minimal — only scrapes the app and optionally Prometheus itself.
# For production-grade scrapes, add relabel_configs, recording rules,
# and alerting rules as needed.
#
# v7.1.0. Shipped as part of `docker compose --profile observability up -d`.
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
deployment: docker-dash
# v7.6.0 — Alert rule files. Loaded relative to this file; the docker-compose
# observability profile bind-mounts the alerts/ directory into the container.
# Wire an Alertmanager via `alerting:` block to route fires to Slack/PagerDuty/etc.
rule_files:
- alerts/*.yml
scrape_configs:
# Docker Dash app metrics. Works in both standalone and HA mode.
# In HA mode, each replica exposes its own /api/metrics; if you scale
# to N replicas and want Prometheus to scrape all of them, replace
# `app:8101` below with a list of replica DNS names (or use DNS SD).
- job_name: docker-dash
metrics_path: /api/metrics
static_configs:
- targets: ['app:8101']
labels:
service: docker-dash
# Prometheus self-monitoring — useful for observability of observability.
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']