lab6: observability — OTel Collector, Prometheus, Loki, Tempo, Grafana

This commit is contained in:
2026-11-13 13:20:46 +03:00
parent 470d9d6f1e
commit 5945e035e0
63 changed files with 6436 additions and 19 deletions
@@ -0,0 +1,25 @@
"""add variants column to attachments
Revision ID: <hash>
Revises: 25c48b226c14
Create Date: <date>
"""
from __future__ import annotations
from alembic import op
revision = "d60dfc3e075a"
down_revision = "25c48b226c14"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.execute("""
ALTER TABLE attachments
ADD COLUMN IF NOT EXISTS variants JSONB NOT NULL DEFAULT '[]'::jsonb
""")
def downgrade() -> None:
op.execute("ALTER TABLE attachments DROP COLUMN IF EXISTS variants")