Skip to content

Commit

Permalink
full metrics status view
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Oct 27, 2023
1 parent 17060aa commit 345ead8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/prometheus_api/prometheus_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
)

Expand Down

0 comments on commit 345ead8

Please sign in to comment.