Fix Hydra exporter crash loop nonsense

This commit is contained in:
Ilya K 2024-10-01 19:27:13 +03:00
parent 4ddf87fa8e
commit 5582a0a29b

View file

@ -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/")