XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
55 stars 47 forks source link

Prometheus metric ETL alive #1445

Open kuznetsss opened 2 weeks ago

kuznetsss commented 2 weeks ago

Summary

There should be a Prometheus metric showing whether there is at least one ETL node alive.

Motivation

Such metric would be helpful to create alert if ETL all ETL nodes Clio is connected to are down.

godexsoft commented 2 weeks ago

Perhaps it would be even better to show how many sources are available and how many total are configured. Or just add a last seen timestamp to each of the ETL nodes in the array

kuznetsss commented 2 weeks ago

It will be more complicated to in terms of implementation, because for number Clio would have to ping each source from time to time to keep the counter up-to-date. While the flag could be set to false if fetching data from each source failed.