""" Prometheus metric definitions for the orchestrator application. This module exposes Prometheus counters and gauges for monitoring the orchestrator, including application health and email delivery metrics. """ from prometheus_client import Counter, Gauge 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', 'Total number of emails sent by the orchestrator', [*CORE_LABELS, 'email_group'], )