feat: put telemetry backends, LB metrics and Grafana behind mTLS gateways
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,12 @@
|
||||
# lifecycle нет; порт не публикуется. Правила записи и оповещения — rules.yml
|
||||
# (design change slo-alerts, решения 1, 3, 4, 9); блока alerting нет:
|
||||
# доставки наружу нет, состояние firing / resolved — API правил, ряды ALERTS и
|
||||
# Grafana.
|
||||
# Grafana. С change telemetry-backends-tls (design, решения 2, 8) Prometheus
|
||||
# живёт в сетевом пространстве шлюза prometheus-gateway и слушает только
|
||||
# 127.0.0.1:19090; scrape сетевых целей — https с клиентским leaf
|
||||
# prometheus-client (файлы — secrets), сервер — по CA стенда и имени цели (=
|
||||
# SAN шлюза), TLS 1.3; CRL у scrape-клиента нет (матрица доверия). Файлы
|
||||
# tls_config проверяет стенд (up), make alerts_test — promtool --syntax-only.
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
@@ -32,6 +37,12 @@ scrape_configs:
|
||||
# пишет ноль в момент старта нового процесса (решение 6)
|
||||
- job_name: otel-collector-exporter
|
||||
honor_labels: true
|
||||
scheme: https
|
||||
tls_config:
|
||||
ca_file: /run/secrets/ca.crt
|
||||
cert_file: /run/secrets/prometheus-client.crt
|
||||
key_file: /run/secrets/prometheus-client.key
|
||||
min_version: TLS13
|
||||
scrape_protocols:
|
||||
- PrometheusProto
|
||||
- OpenMetricsText1.0.0
|
||||
@@ -39,14 +50,33 @@ scrape_configs:
|
||||
static_configs:
|
||||
- targets: ["otel-collector:8889"]
|
||||
- job_name: otel-collector
|
||||
scheme: https
|
||||
tls_config:
|
||||
ca_file: /run/secrets/ca.crt
|
||||
cert_file: /run/secrets/prometheus-client.crt
|
||||
key_file: /run/secrets/prometheus-client.key
|
||||
min_version: TLS13
|
||||
static_configs:
|
||||
- targets: ["otel-collector:8888"]
|
||||
- job_name: loki
|
||||
scheme: https
|
||||
tls_config:
|
||||
ca_file: /run/secrets/ca.crt
|
||||
cert_file: /run/secrets/prometheus-client.crt
|
||||
key_file: /run/secrets/prometheus-client.key
|
||||
min_version: TLS13
|
||||
static_configs:
|
||||
- targets: ["loki:3100"]
|
||||
- job_name: tempo
|
||||
scheme: https
|
||||
tls_config:
|
||||
ca_file: /run/secrets/ca.crt
|
||||
cert_file: /run/secrets/prometheus-client.crt
|
||||
key_file: /run/secrets/prometheus-client.key
|
||||
min_version: TLS13
|
||||
static_configs:
|
||||
- targets: ["tempo:3200"]
|
||||
# собственные метрики — loopback пространства шлюза (закрытый hop), без TLS
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["127.0.0.1:9090"]
|
||||
- targets: ["127.0.0.1:19090"]
|
||||
|
||||
Reference in New Issue
Block a user