diff --git a/services/monitoring/exporters/hydra/hydra-exporter.py b/services/monitoring/exporters/hydra/hydra-exporter.py index 2596274..0301399 100755 --- a/services/monitoring/exporters/hydra/hydra-exporter.py +++ b/services/monitoring/exporters/hydra/hydra-exporter.py @@ -338,11 +338,11 @@ async def update_metrics_loop(hydra_url, scrape_interval): ) update_metrics(response.json()) - - await asyncio.sleep(scrape_interval) except Exception as ex: logging.exception("Failed to update metrics", exc_info=ex) + await asyncio.sleep(scrape_interval) + @click.command() @click.option("--hydra-url", default="https://hydra.forkos.org/")