Rasmus Bækgaard
Rasmus Bækgaard

Reputation: 741

Get status of database content in Prometheus' metrics

I have a CRON job which triggers a service to do some database processing. I would like to make the result available in Prometheus.

The job runs every hour, but will rerun shortly aftet if a data condition is not met. That means, that for every time the job run, I can ask the database for its state, and have a few gauge display the state.

The issue is that I have multiple instances running of this service. It is only the instance triggered which will update its /metrics page.

How do I handle this?

Upvotes: -4

Views: 33

Answers (0)

Related Questions