Code import - branch 0.6.0
This commit is contained in:
23
orchestrator/metrics.py
Normal file
23
orchestrator/metrics.py
Normal 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'],
|
||||
)
|
||||
Reference in New Issue
Block a user