forked from the-distro/infra
Fix Hydra exporter crash loop nonsense
This commit is contained in:
parent
4ddf87fa8e
commit
5582a0a29b
|
@ -338,11 +338,11 @@ async def update_metrics_loop(hydra_url, scrape_interval):
|
||||||
)
|
)
|
||||||
|
|
||||||
update_metrics(response.json())
|
update_metrics(response.json())
|
||||||
|
|
||||||
await asyncio.sleep(scrape_interval)
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logging.exception("Failed to update metrics", exc_info=ex)
|
logging.exception("Failed to update metrics", exc_info=ex)
|
||||||
|
|
||||||
|
await asyncio.sleep(scrape_interval)
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option("--hydra-url", default="https://hydra.forkos.org/")
|
@click.option("--hydra-url", default="https://hydra.forkos.org/")
|
||||||
|
|
Loading…
Reference in a new issue