Code import - branch 0.6.0

This commit is contained in:
2026-08-05 13:53:41 +00:00
commit 4366a9ab72
94 changed files with 16486 additions and 0 deletions

23
orchestrator/metrics.py Normal file
View File

@@ -0,0 +1,23 @@
"""
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'],
)