node_exporter itself doesn't generate apt_upgrades_pending.

Therefore, I expect you're running a script like this from cron:
https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/master/apt.sh
together with node_exporter's textfile_collector.

This isn't a counter, it's a gauge.  And you can alert on it just by any 
simple PromQL expression, e.g.

apt_upgrades_pending > 0
# alert as soon as updates available

min_over_time(apt_upgrades_pending[48h]) > 0
# only alert if updates have been pending for 48 hours continuously

I don't know anything about Windows package management, but if you can make 
a batch file or powershell script to determine the information you want, 
you should be able to do the same sort of thing.

-- 
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/7ed5470b-f7c9-4a38-8ebc-ace1dce2081fn%40googlegroups.com.

Reply via email to