This commit is contained in:
2026-11-16 18:47:37 +03:00
parent 470d9d6f1e
commit ccb463aea1
109 changed files with 64105 additions and 32 deletions
+30 -4
View File
@@ -1,7 +1,33 @@
# Инфраструктура студента
# Инфраструктура lab6
Здесь разместите конфигурации выбранных сервисов; основную топологию — в корневом compose.yaml/stack.yaml. `compose.example.yaml` — только worksheet ролей и намеренно не запускается. `contracts/infrastructure.json` задаёт минимальные роли, не готовые образы/пароли.
Рабочая топология — в корневом `compose.yaml`. `compose.example.yaml` остаётся
учебным worksheet, его запускать не нужно. Bootstrap: `python3 scripts/bootstrap-local.py`,
затем `docker compose up -d --build`. Повторный запуск сохраняет volumes и данные.
В REPORT.md сопоставьте роль → service name → версия/digest → health/readiness → volume → сеть/порт → способ передачи credentials. Приведите bootstrap (schema, bucket, broker topology, а с lab6 provisioning) и безопасное повторение этих команд.
| Роль | Compose service | Persistent volume | Host port |
|---|---|---|---|
| C++ API (2 реплики) | api | — | через lb |
| Reverse proxy | lb | — | 127.0.0.1:8080 |
| PostgreSQL 16.15 | db | pgdata | нет |
| Valkey 8.1.10 / Redis Streams | cache | valkeydata | нет |
| MinIO | minio | miniodata | нет |
| Bucket / least-privilege user bootstrap | minio-init, minio-user-init | — | нет |
| C++ последовательный worker | worker | — | нет |
| Collector 0.119.0 | otel-collector | — | нет |
| Prometheus 3.2.1 | prometheus | prometheusdata | 127.0.0.1:9090 |
| Loki 3.4.2 | loki | lokidata | нет |
| Tempo 2.7.2 | tempo | tempodata | нет |
| Grafana 11.6.0 | grafana | grafanadata | 127.0.0.1:3000 |
Приложение строится из исходников. Не используйте заранее существующий образ преподавательского сервера вместо своей реализации. Restart hook перезапускает все соответствующие stores с volumes; failover hook останавливает только заданную API-реплику.
API/worker строятся из исходников этого репозитория; MinIO/mc — из закреплённых
официальных release binaries с проверкой SHA256. PostgreSQL/Valkey/MinIO имеют
healthchecks; API ждёт готовности бизнес-зависимостей и bootstrap S3, lb ждёт API.
Telemetry backends не блокируют запуск или работу бизнес-процессов.
Credentials хранятся в локальных `.env` и `secrets/`, исключённых из Git/context.
API/worker читают Docker file secrets после staging для uid 10001; Grafana читает
пароль из отдельного file secret. Корневые MinIO credentials нужны только store/bootstrap;
приложения используют ограниченного S3 пользователя. Все сервисы находятся в default
Compose network. Метрики, логи, трассы и состояние Grafana переживают restart.
Provisioning, версии, SLO, runbooks и реальные проверки: [REPORT.md](../REPORT.md).
+485
View File
@@ -0,0 +1,485 @@
{
"uid": "messenger-observability",
"title": "Messenger — Observability",
"schemaVersion": 40,
"version": 1,
"refresh": "5s",
"time": {
"from": "now-15m",
"to": "now"
},
"panels": [
{
"id": 1,
"title": "API RPS (business requests)",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 0,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum by(http_route)(rate(http_server_requests_total[$__rate_interval]))",
"legendFormat": "{{http_route}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "reqps"
},
"overrides": []
},
"options": {}
},
{
"id": 2,
"title": "API p50 / p95 / p99 (all replicas)",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "histogram_quantile(0.5, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p50"
},
{
"refId": "B",
"expr": "histogram_quantile(0.95, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p95"
},
{
"refId": "C",
"expr": "histogram_quantile(0.99, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p99"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {}
},
{
"id": 3,
"title": "API error rate (5xx / all business requests)",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 8,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "(sum(rate(http_server_requests_total{http_response_status_class=\"5xx\"}[$__rate_interval])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[$__rate_interval])),0.001)",
"legendFormat": "5xx ratio"
}
],
"fieldConfig": {
"defaults": {
"unit": "percentunit"
},
"overrides": []
},
"options": {}
},
{
"id": 4,
"title": "Queue depth (durable outstanding jobs)",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 8,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "max(queue_depth)",
"legendFormat": "jobs"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {}
},
{
"id": 5,
"title": "Oldest outstanding job / observation age",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 16,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "max(queue_oldest_age)",
"legendFormat": "oldest"
},
{
"refId": "B",
"expr": "time()-max(queue_observation_timestamp)",
"legendFormat": "observation age"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {}
},
{
"id": 6,
"title": "Worker saturation (busy / capacity)",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 16,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum(worker_busy) / clamp_min(sum(worker_capacity),1)",
"legendFormat": "saturation"
}
],
"fieldConfig": {
"defaults": {
"unit": "percentunit"
},
"overrides": []
},
"options": {}
},
{
"id": 7,
"title": "Worker outcomes per second",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 24,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum by(outcome)(rate(worker_jobs_total[$__rate_interval]))",
"legendFormat": "{{outcome}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "ops"
},
"overrides": []
},
"options": {}
},
{
"id": 8,
"title": "Worker p50 / p95 / p99",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 24,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "histogram_quantile(0.5,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p50"
},
{
"refId": "B",
"expr": "histogram_quantile(0.95,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p95"
},
{
"refId": "C",
"expr": "histogram_quantile(0.99,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p99"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {}
},
{
"id": 9,
"title": "DB pools (application + outbox)",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 32,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum(db_pool_used)",
"legendFormat": "used"
},
{
"refId": "B",
"expr": "sum(db_pool_waiting)",
"legendFormat": "waiting"
},
{
"refId": "C",
"expr": "sum(db_pool_capacity)",
"legendFormat": "capacity"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {}
},
{
"id": 10,
"title": "Acceptance to ready p50 / p95 / p99",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 32,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "histogram_quantile(0.5,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p50"
},
{
"refId": "B",
"expr": "histogram_quantile(0.95,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p95"
},
{
"refId": "C",
"expr": "histogram_quantile(0.99,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))",
"legendFormat": "p99"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {}
},
{
"id": 11,
"title": "Process resident memory",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 40,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "process_memory_usage",
"legendFormat": "{{service_name}} / {{service_instance_id}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
},
"options": {}
},
{
"id": 12,
"title": "Process CPU (cores)",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 40,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "rate(process_cpu_time[$__rate_interval])",
"legendFormat": "{{service_name}} / {{service_instance_id}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {}
},
{
"id": 13,
"title": "Collector rejected/failed signal export",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 48,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"refId": "A",
"expr": "sum(rate(otelcol_exporter_send_failed_spans[$__rate_interval]))",
"legendFormat": "exporter_send_failed_spans"
},
{
"refId": "B",
"expr": "sum(rate(otelcol_exporter_send_failed_log_records[$__rate_interval]))",
"legendFormat": "exporter_send_failed_log_records"
},
{
"refId": "C",
"expr": "sum(rate(otelcol_processor_refused_spans[$__rate_interval]))",
"legendFormat": "processor_refused_spans"
},
{
"refId": "D",
"expr": "sum(rate(otelcol_exporter_enqueue_failed_spans[$__rate_interval]))",
"legendFormat": "exporter_enqueue_failed_spans"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {}
},
{
"id": 14,
"title": "Correlated application events",
"type": "logs",
"gridPos": {
"x": 12,
"y": 48,
"w": 12,
"h": 8
},
"datasource": {
"type": "loki",
"uid": "loki"
},
"targets": [
{
"refId": "A",
"expr": "{service_name=~\"messenger-api|messenger-worker\"}",
"legendFormat": "logs"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {}
}
],
"tags": [
"lab6"
],
"annotations": {
"list": []
}
}
@@ -0,0 +1,7 @@
apiVersion: 1
providers:
- name: messenger
folder: Messenger
type: file
options:
path: /var/lib/grafana/dashboards
@@ -0,0 +1,33 @@
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
- name: Loki
uid: loki
type: loki
access: proxy
url: http://loki:3100
jsonData:
derivedFields:
- name: TraceID
matcherType: label
matcherRegex: trace_id
datasourceUid: tempo
url: '$${__value.raw}'
- name: Tempo
uid: tempo
type: tempo
access: proxy
url: http://tempo:3200
jsonData:
tracesToLogsV2:
datasourceUid: loki
spanStartTimeShift: '-1m'
spanEndTimeShift: '1m'
tags: [{key: service.name, value: service_name}]
filterByTraceID: true
filterBySpanID: true
+31
View File
@@ -0,0 +1,31 @@
auth_enabled: false
server:
http_listen_port: 3100
common:
path_prefix: /loki
replication_factor: 1
ring:
kvstore:
store: inmemory
storage:
filesystem:
chunks_directory: /loki/chunks
rules_directory: /loki/rules
schema_config:
configs:
- from: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
limits_config:
allow_structured_metadata: true
retention_period: 168h
compactor:
working_directory: /loki/compactor
retention_enabled: true
delete_request_store: filesystem
analytics:
reporting_enabled: false
+19
View File
@@ -0,0 +1,19 @@
# Local MinIO Client (mc) from the official GitHub release binary (pinned).
# Fallback when docker.io/minio/mc cannot be pulled.
FROM ubuntu:24.04
ARG MC_VERSION=RELEASE.2025-04-16T18-13-26Z
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl \
&& curl -fsSL -o /tmp/mc.bin \
"https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}" \
&& curl -fsSL -o /tmp/mc.sha256sum \
"https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}.sha256sum" \
&& expected="$(awk '{print $1}' /tmp/mc.sha256sum)" \
&& echo "${expected} /tmp/mc.bin" | sha256sum -c - \
&& install -m 0755 /tmp/mc.bin /usr/local/bin/mc \
&& rm -f /tmp/mc.bin /tmp/mc.sha256sum \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["mc"]
+22
View File
@@ -0,0 +1,22 @@
# Local MinIO image from the official GitHub release binary (pinned).
# Fallback when docker.io/minio/minio cannot be pulled.
FROM ubuntu:24.04
ARG MINIO_VERSION=RELEASE.2025-04-22T22-12-26Z
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl \
&& curl -fsSL -o /tmp/minio.bin \
"https://github.com/minio/minio/releases/download/${MINIO_VERSION}/minio.linux-amd64.${MINIO_VERSION}" \
&& curl -fsSL -o /tmp/minio.sha256sum \
"https://github.com/minio/minio/releases/download/${MINIO_VERSION}/minio.linux-amd64.${MINIO_VERSION}.sha256sum" \
&& expected="$(awk '{print $1}' /tmp/minio.sha256sum)" \
&& echo "${expected} /tmp/minio.bin" | sha256sum -c - \
&& install -m 0755 /tmp/minio.bin /usr/local/bin/minio \
&& rm -f /tmp/minio.bin /tmp/minio.sha256sum \
&& rm -rf /var/lib/apt/lists/*
VOLUME ["/data"]
EXPOSE 9000 9001
ENTRYPOINT ["minio"]
CMD ["server", "/data", "--console-address", ":9001"]
+29
View File
@@ -0,0 +1,29 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucketMultipartUploads",
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__/*"
]
}
]
}
+36 -4
View File
@@ -1,7 +1,39 @@
# Конфигурация наблюдаемости — реализовать
# OpenTelemetry Collector
Добавьте `collector.yaml` с OTLP receivers, processors и exporters выбранной версии Collector. Укажите явные bind endpoints, внутренние сети, memory limits/batch и поведение при backpressure по уровню. Сопоставьте все три pipeline с реально развёрнутыми backend.
`collector.yaml` рассчитан на Collector Contrib **0.119.0**.
Добавьте конфигурации storage, Grafana provisioning/datasources, provisioning/dashboards и импортируемые dashboard JSON. На 4 — alert rules и runbooks. Пустой dashboard или debug exporter, который только печатает данные в stdout, не заменяют хранилища/доказательства из `contracts/observability.md`.
- Receiver: OTLP HTTP/protobuf, `0.0.0.0:4318`, только Compose network.
- Все pipelines: `memory_limiter` → `batch`.
- Metrics → Prometheus exporter `:9464`; process diagnostics `:8888`.
- Traces → Tempo `http://tempo:4318/v1/traces`.
- Logs → Loki native OTLP `http://loki:3100/otlp/v1/logs`.
- Ограниченные очереди 256 batches, retry не более 15s; Docker limit 256 MiB.
- Метрики остановленных SDK instances истекают через 20s, чтобы pool/capacity
не считались повторно после смены контейнеров.
Не публикуйте OTLP/metrics/административные ports в общую сеть без необходимости. В lab7 реализуйте TLS/mTLS по trust matrix; экспорт Authorization и message bodies запрещён.
API/worker экспортируют в Collector асинхронно и не зависят от его readiness.
Payloads не печатаются debug exporter-ом. Подробности и ограничения потерь —
в [REPORT.md](../../REPORT.md).
Проверка:
```sh
docker compose exec -T otel-collector /otelcol-contrib validate --config=/etc/otelcol/config.yaml
```
## Track 1
`collector-sampling10.yaml` отличается только traces processor:
`memory_limiter → probabilistic_sampler/track1 (10%, hash_seed=22) → batch`.
Логи и метрики сохраняются без sampling. Переключение:
```sh
OTEL_COLLECTOR_CONFIG=./infra/otel/collector-sampling10.yaml docker compose up -d otel-collector
# Вернуть исходную конфигурацию:
OTEL_COLLECTOR_CONFIG=./infra/otel/collector.yaml docker compose up -d otel-collector
```
Пересоздание Collector сбрасывает его собственные counters: измерять delta только
внутри одного прогона. `otelcol_receiver_accepted_spans` отражает вход до sampling;
эффект 10% проверяется также через `otelcol_exporter_sent_spans`.
Полный эксперимент и автоматическое восстановление: `scripts/benchmark_telemetry.py`.
+67
View File
@@ -0,0 +1,67 @@
# Track 1: sample traces only; metrics and logs remain at 100%.
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_mib: 192
spike_limit_mib: 32
probabilistic_sampler/track1:
hash_seed: 22
sampling_percentage: 10
batch:
timeout: 1s
send_batch_size: 256
send_batch_max_size: 512
exporters:
prometheus:
endpoint: 0.0.0.0:9464
metric_expiration: 20s
resource_to_telemetry_conversion:
enabled: true
otlphttp/tempo:
endpoint: http://tempo:4318
timeout: 2s
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
otlphttp/loki:
endpoint: http://loki:3100/otlp
timeout: 2s
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
service:
telemetry:
logs:
level: warn
metrics:
address: 0.0.0.0:8888
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, probabilistic_sampler/track1, batch]
exporters: [otlphttp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]
+63
View File
@@ -0,0 +1,63 @@
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_mib: 192
spike_limit_mib: 32
batch:
timeout: 1s
send_batch_size: 256
send_batch_max_size: 512
exporters:
prometheus:
endpoint: 0.0.0.0:9464
metric_expiration: 20s
resource_to_telemetry_conversion:
enabled: true
otlphttp/tempo:
endpoint: http://tempo:4318
timeout: 2s
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
otlphttp/loki:
endpoint: http://loki:3100/otlp
timeout: 2s
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 15s
service:
telemetry:
logs:
level: warn
metrics:
address: 0.0.0.0:8888
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]
+27
View File
@@ -0,0 +1,27 @@
groups:
- name: messenger-slo
rules:
- alert: ApiHighErrorRate
expr: (sum(rate(http_server_requests_total{http_response_status_class="5xx"}[1m])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[1m])), 0.001) > 0.05
for: 30s
labels:
severity: warning
annotations:
summary: API 5xx ratio above 5% for 30 seconds (1 minute window)
description: Check server spans, postgresql.pool.acquire and DB pool metrics. Runbook in REPORT.md.
- alert: QueueLagGrowing
expr: max(queue_oldest_age) > 30 and max(queue_depth) > 0 and max(delta(queue_oldest_age[1m])) > 0
for: 30s
labels:
severity: warning
annotations:
summary: Durable backlog is ageing beyond 30 seconds
description: Check worker capacity/busy, worker logs and Redis/DB/S3 spans. Runbook in REPORT.md.
- alert: QueueObservationStale
expr: time() - max(queue_observation_timestamp) > 30 or absent(queue_observation_timestamp)
for: 30s
labels:
severity: warning
annotations:
summary: Queue observer unavailable
description: Queue values may be stale; check PostgreSQL and API observer logs.
+11
View File
@@ -0,0 +1,11 @@
global:
scrape_interval: 5s
evaluation_interval: 5s
rule_files: [/etc/prometheus/alerts.yaml]
scrape_configs:
- job_name: messenger
static_configs:
- targets: [otel-collector:9464]
- job_name: collector
static_configs:
- targets: [otel-collector:8888]
+22
View File
@@ -0,0 +1,22 @@
server:
http_listen_port: 3200
distributor:
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
ingester:
max_block_duration: 5m
compactor:
compaction:
block_retention: 168h
storage:
trace:
backend: local
wal:
path: /var/tempo/wal
local:
path: /var/tempo/blocks
usage_report:
reporting_enabled: false