From 5582a0a29b584d6806340e77a3fec8a110868624 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 1 Oct 2024 19:27:13 +0300 Subject: [PATCH] Fix Hydra exporter crash loop nonsense --- services/monitoring/exporters/hydra/hydra-exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/")