Problem: Whenever there is a new config added, new metrics are exposed by the exporter. But in case a config is updated in CSV, the exporter along with new health check gives the result for the old data as well.
Gauge Definition
- g = Gauge('healthcheck', 'Metrics generated by Health Check exporter', [
- 'customer',
- 'application',
- 'component',
- 'version',
- 'description',
- 'source_host_name',
- 'target_host_name',
- 'target_host_port',
- 'environment'
- ])
- g.labels(
- chs['customer'],
- chs['application'],
- chs['container'],
- chs['version'],
- chs['description'],
- chs['nehost'],
- chs['hostname'],
- chs['port'],
- chs['environment']
).set(value)
Enter code here...
Kavya K
Hi,
I have created an exporter for checking health of various applications using API exposed by these applications.
Workflow:
- A csv file is created with details about various application's host/ports/API URL etc.
- This custom exporter reads the file at a certain interval and gets the health check return code
Problem: Whenever there is a new config added, new metrics are exposed by the exporter. But in case a config is updated in CSV, the exporter along with new health check gives the result for the old data as well.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ab39f4f8-d02f-474e-b1c7-86a23353787e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ab39f4f8-d02f-474e-b1c7-86a23353787e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, I will try using this.
Yes, I read about blackbox exporter but there is a requirement that in case certain heath check fails its response JSON body has to be read and then metrics needs to be created from them.
By the way, does blackbox exporter provides flexibility to pass different headers for a single probe? As we have multiple applications which needs different headers.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e0ae727e-05c9-4dc0-bd3a-4512fdea75fd%40googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.