Hello all,

I guess this is a question more related to node-exporter. I'm following a 
online tutorial on how to monitor cron job execution status using 
Prometheus, Grafana, and node_exporter. 
https://janikvonrotz.ch/2020/09/07/monitor-cron-jobs-with-prometheus-grafana-and-node-exporter/
 I 
have successfully generated metric files to the directory /var/temp, and my 
locally installed node_exporter can detect these metrics, specifically the 
"node_cron_job_exit_code" metric, which is visible on 9100/metrics. 
However, when I tried to move everything to a Docker environment using 
docker-compose to run node-exporter and Prometheus containers 
simultaneously, the metric is no longer visible on 9100/metrics. I added 
the command "--collector.textfile.directory=/hostfs/var/tmp" to the 
node-exporter service in the docker-compose.yml file, and the metric files 
are still generated in the /var/tmp directory. However, even though all the 
other metrics are present, I cannot locate the "node_cron_job_exit_code" 
metric on 9100/metrics. Does anyone know what might be the issue here?

Thank you!

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/151d34ed-42c2-4b3a-b27a-e34f79748bffn%40googlegroups.com.

Reply via email to