Files
mtusi2026lab7/infra/prometheus/prometheus.yml
T
ALMiron 912a874f00
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab 7 openbao
2026-11-23 14:39:13 +03:00

16 lines
564 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/alerts.yml
scrape_configs:
# App metrics arrive by remote write (push, mTLS). Only the Collector self-metrics (plain, internal) and Prometheus itself (TLS) are scraped.
- job_name: otel-collector
static_configs:
- targets: ["otel-collector:8888"]
- job_name: prometheus
scheme: https
tls_config: {ca_file: /pki/ca.crt, cert_file: /pki/tls.crt, key_file: /pki/tls.key, server_name: prometheus}
static_configs:
- targets: ["prometheus:9090"]