diff --git a/webapp/prometheus_api/prometheus_handler.py b/webapp/prometheus_api/prometheus_handler.py index d31b4a6..aa7a0c4 100644 --- a/webapp/prometheus_api/prometheus_handler.py +++ b/webapp/prometheus_api/prometheus_handler.py @@ -91,11 +91,11 @@ def get_metrics(self) -> str: value=source.realtime_parking_site_error_count, ) ) - if source.status == SourceStatus.FAILED: + if source.status in [SourceStatus.FAILED, SourceStatus.ACTIVE]: failed_sources.metrics.append( SourceMetric( source=source.uid, - value=1, + value=1 if source.status == SourceStatus.FAILED else 0, ) )