Skip to content

Commit

Permalink
missing get_health() argument (#2771)
Browse files Browse the repository at this point in the history
* missing get_health() argument

* Remove health_check_is_healthy_current since is_unhealthy is incorrectly set
  • Loading branch information
joaquincasares committed Mar 28, 2022
1 parent ad94ec0 commit 69ad140
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions discovery-provider/src/queries/get_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,7 @@ def get_health(args: GetHealthArgs, use_redis_cache: bool = True) -> Tuple[Dict,


def health_check_prometheus_exporter():
health_results, is_unhealthy = get_health()

PrometheusMetric(
"health_check_is_healthy_current",
"Difference between the latest block and the latest indexed block",
metric_type=PrometheusType.GAUGE,
).save(0 if is_unhealthy else 1)
health_results, is_unhealthy = get_health({})

PrometheusMetric(
"health_check_block_difference_current",
Expand Down

0 comments on commit 69ad140

Please sign in to comment.