Лабораторная работа 6

This commit is contained in:
2026-11-13 01:27:57 +03:00
parent 470d9d6f1e
commit 2dbdcf898c
218 changed files with 22057 additions and 37 deletions
+24
View File
@@ -0,0 +1,24 @@
# Prometheus v2.55.1 — хранилище МЕТРИК (TSDB на volume promdata, retention 7d)
# и вычислитель alert rules (состояние firing/resolved видно в /alerts и Grafana;
# доставка наружу не настроена — Alertmanager не нужен по заданию).
global:
scrape_interval: 10s
evaluation_interval: 10s
rule_files:
- /etc/prometheus/rules/*.yml
scrape_configs:
# Метрики приложения, которые Collector получил по OTLP. honor_labels: сохраняем
# job=<service.name> и instance=<service.instance.id>, выставленные exporter'ом.
- job_name: otel-collector-app
honor_labels: true
static_configs:
- targets: ["otel-collector:8889"]
# Собственные метрики Collector: принятые/отброшенные/неотправленные spans, logs, points.
- job_name: otel-collector-self
static_configs:
- targets: ["otel-collector:8888"]
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]