SIENTIAPDE-1645: Rename Prometheus 'sientia_app_up' metric to 'app_up' and update test assertion.
This commit is contained in:
@@ -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'],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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)'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user