On Wed, Sep 15, 2021, at 06:19, [email protected] wrote: > I have been looking if there is a way prometheus can monitor file > modification/creation time. I have some crons generating few files everyday > and i want to monitor if these are created every day. If prom can monitor a > directory and report all the contents in the directory with their creation > timestamps, that would also work for me.
Not that I'm aware of, I use two techniques: 1) a textfile-collector script that scans a folder and outputs timestamps. see https://github.com/prometheus-community/node-exporter-textfile-collector-scripts 2) Some tools run from cron can output Prometheus metrics also for the textfile exporter - for example, I run the borg_exporter script automatically from borgmatic: https://github.com/teemow/prometheus-borg-exporter -- Harald -- 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/1d4a31a7-0d11-44ad-a4ca-39b3b75aa9d1%40www.fastmail.com.

