-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
29 lines (26 loc) · 1.05 KB
/
Copy pathprometheus.yml
File metadata and controls
29 lines (26 loc) · 1.05 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
# Polaris: Prometheus scrape + rules config (v9.115)
#
# A ready-to-use Prometheus config: scrape the app's /metrics and load the
# Polaris alerting rules. Point `static_configs.targets` at your deployment and
# `alerting` targets the shipped alertmanager.yml (v9.175); the pager URL it
# notifies is operator-supplied (see README.md). Validate with: promtool check config prometheus.yml
global:
scrape_interval: 30s
evaluation_interval: 30s
rule_files:
- polaris-alerts.yml
- polaris-slo.yml # SLI and error-budget recording rules (v9.241)
# v9.175 (P0.10): the shipped Alertmanager (alertmanager.yml routes to the
# pager receiver). `alertmanager:9093` is the service name on the deployment's
# network; change the host if yours differs.
alerting:
alertmanagers:
- static_configs:
- targets: ['alertmanager:9093']
scrape_configs:
- job_name: polaris
metrics_path: /metrics
scheme: https
static_configs:
# Replace with your deployment's host:port (the app behind Caddy).
- targets: ['polaris.example.com:443']