""" Prometheus metrics definitions for the orchestrator application. This module defines all Prometheus metrics used for monitoring the orchestrator system including application health, email delivery, and workflow execution metrics. """ from prometheus_client import Gauge, Counter APP_UP = Gauge( "app_up", "Indicates if the application is running (1) or shutting down (0)", ["pod_id"], ) CORE_LABELS = ["pod_id", "model_name", "pipeline_name"] EMAIL_SENT_COUNT = Counter( "email_sent_count", "Number of emails sent", [*CORE_LABELS, "email_group"], )