infrastructure/coreos-config/plays/services/prometheus/prometheus.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2023-04-16 16:10:44 +02:00
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
2023-04-17 10:58:00 +02:00
- scheme: http
static_configs:
- targets: [ 'alertmanager:9093' ]
2023-04-16 16:10:44 +02:00
- static_configs:
- targets: []
scheme: http
timeout: 10s
api_version: v1
2023-04-17 11:36:06 +02:00
rule_files:
- "/rules/*.yaml"
2023-04-16 16:10:44 +02:00
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- job_name: 'service_discovery'
2023-04-17 21:49:02 +02:00
metric_relabel_configs:
- source_labels:
- "container_name"
target_label: "instance"
action: replace
2023-04-16 16:10:44 +02:00
file_sd_configs:
- files:
- /label_discovery/docker-targets.json
- job_name: minio-job
bearer_token: "{{ prometheus.scrape.s3.bearer_token }}"
metrics_path: /minio/v2/metrics/cluster
scheme: https
static_configs:
- targets: [s3.tobiasmanske.de]
- job_name: drone-job
bearer_token: "{{ prometheus.scrape.drone.bearer_token }}"
scheme: https
static_configs:
- targets: [drone.tobiasmanske.de]
2023-04-18 00:05:19 +02:00
- job_name: 'uptime-kuma-job'
scrape_interval: 30s
scheme: https
static_configs:
- targets: [status.tobiasmanske.de]
basic_auth:
username: "{{ prometheus.scrape.kuma.user }}"
password: "{{ prometheus.scrape.kuma.password }}"