SIENTIAPDE-1645: Rename Prometheus 'sientia_app_up' metric to 'app_up' and update test assertion.

This commit is contained in:
vitor-aignosi
2026-06-17 12:26:25 -03:00
parent ea98032057
commit fe8a9384ba
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ from prometheus_client import Counter, Gauge, Histogram
# Application health metric # Application health metric
APP_UP = Gauge( APP_UP = Gauge(
'sientia_app_up', 'app_up',
'Indicates if the application is running (1) or shutting down (0)', 'Indicates if the application is running (1) or shutting down (0)',
['pod_id'], ['pod_id'],
) )

View File

@@ -10,7 +10,7 @@ def test_app_up_metric_exists():
from model_manager.metrics import APP_UP from model_manager.metrics import APP_UP
assert APP_UP is not None assert APP_UP is not None
assert APP_UP._name == 'sientia_app_up' assert APP_UP._name == 'app_up'
assert ( assert (
APP_UP._documentation == 'Indicates if the application is running (1) or shutting down (0)' APP_UP._documentation == 'Indicates if the application is running (1) or shutting down (0)'
) )