Reputation: 741
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