ЛР6: OpenTelemetry, Collector, Prometheus/Loki/Tempo, Grafana, SLO и алерты, инциденты

This commit is contained in:
kalibr456
2026-11-01 21:25:38 +03:00
parent 470d9d6f1e
commit 79ef8807d5
156 changed files with 18393 additions and 35 deletions
+32
View File
@@ -0,0 +1,32 @@
# configs: lab6: collector/prometheus/loki/tempo configs by their own tools, alert unit tests, Grafana provisioning
# date: 2026-11-01 20:07:53, commit: 470d9d6 + uncommitted changes
# command: python.exe student-tests/check_configs.py
# exit code: 0, 5.5 s
--- otelcol-contrib validate (infra/otel/collector.yaml): exit 0
--- promtool check config (infra/prometheus/prometheus.yml): exit 0
Checking /etc/prometheus/rules/alerts.yml
SUCCESS: 6 rules found
Checking /etc/prometheus/rules/recording.yml
SUCCESS: 10 rules found
--- promtool check rules (recording + alerts): exit 0
Checking /etc/prometheus/rules/alerts.yml
SUCCESS: 6 rules found
Checking /etc/prometheus/rules/recording.yml
SUCCESS: 10 rules found
--- promtool test rules (unit tests of alert thresholds/windows/for): exit 0
SUCCESS
--- loki -verify-config (infra/loki/loki.yaml): exit 0
--- tempo -config.verify (infra/tempo/tempo.yaml): exit 0
--- Grafana 12.4.14: database ok
datasource prometheus (prometheus): OK Successfully queried the Prometheus API.
datasource loki (loki): OK Data source successfully connected.
datasource tempo (tempo): OK Data source is working
dashboard 'Messenger — lab6 observability' in folder 'Messenger': 34 panels, provisioned=True, datasources ['loki', 'prometheus', 'tempo']
PASS: collector, prometheus (config, rules, unit tests), loki and tempo configs are valid; Grafana provisioned 3 healthy datasources and the dashboard without manual steps