-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apt_info.py, security updates, rules and dashboards #131
Comments
The crux of the issue is that Prometheus only stores "non-null" samples. So if the exporter or textfile collector doesn't expose a value (even a zero value) for a particular label set, then nothing gets stored by Prometheus. You could add multiple queries to your dashboard, with explicit |
Ok, thanks for the explanation. I was looking at the PromQL functions and hadn't find anything relevant indeed :-( Ideally I'm hoping to make the dashboards and alerts only rely on labels and variables, avoiding anything too specific so that it can be shared and replicate easily. So far I've defined my grafana dashboard like this (if it can help anyone, and any suggestion welcome!) : grafana dashboard JSON for apt_info (Click me)
Edit : I shared my current dashboard here, but I'm not sure where would be the best place to do so to have it linked to the |
Grafana has a community site for sharing dashboards at https://grafana.com/grafana/dashboards/ |
@dswarbrick you need a paid subscription to be able to publish there |
@copolycube Yes, you need a Grafana account - but AFAIK, the "free forever cloud" account type should be sufficient. |
Hello,
with the script apt_info.py replacing
apt.sh
I'm trying to create the following :that would allow me to list the
I found a suggested PromQL by @dswarbrick (here)
but with
sum by(job) (apt_upgrades_pending{origin=~".*Security.*"}) or vector(0)
the result is{} 0
(only once, as a global result) when there are no match / no security upgrades on any instance:Is it possible to still have a vector with 0 for each original value of apt_upgrades_pending instead without modifying
apt_info.py
to export it explicitly ?side question : are there a set of alertmanager rules and grafana dashboards available somewhere to be used along the textfile-collector scripts in this repo ? Or is it possible to generate something just from the HELP and TYPE messages ?
Thanks in advance for your help !
The text was updated successfully, but these errors were encountered: