Files
mtusi2026lab7/infra/prometheus/web.yml
T
2026-11-08 00:33:25 +03:00

13 lines
873 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Prometheus 3.7.3 (с lab7): HTTP-сервер только по TLS и только с клиентским сертификатом нашего CA.
# Доверенного CA мало: client_allowed_sans пропускает лишь три identity —
# otel-collector (запись OTLP-метрик), grafana (запросы dashboard), prometheus (свой healthcheck).
# Сертификат api, worker или lb от того же CA получит отказ. Наружу Prometheus не опубликован:
# оператор смотрит метрики и alerts через Grafana (HTTPS + пароль).
tls_server_config:
cert_file: /run/tls/tls.crt
key_file: /run/tls/tls.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/ca/ca.crt
client_allowed_sans: [otel-collector, grafana, prometheus]
min_version: TLS12