rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.17k stars 445 forks source link

Adding a reboot annotation #113

Closed RasmusLauritsen closed 1 year ago

RasmusLauritsen commented 1 year ago

Adding a reboot annotation for a easier overview of when a server was rebooted. image

rfmoz commented 1 year ago

Great, Thanks!

guidodobboletta commented 1 year ago

This is failing for me for some reason using the latest Grafana I'm getting

"AnnotationQueryRunner failed Query error: 400 Bad Request"

zero0cool0 commented 1 year ago

This is failing for me for some reason using the latest Grafana I'm getting

"AnnotationQueryRunner failed Query error: 400 Bad Request"

@guidodobboletta The same happened for me too and I had to add [$__rate_interval] to the expression to get it to work, such that it looks like this "expr": "changes(node_boot_time_seconds{instance=\"$node\"}[$__rate_interval])",

in the json model

guidodobboletta commented 1 year ago

That fixed it for me @zero0cool0 ! Thank you so much

RasmusLauritsen commented 1 year ago

Sorry about that - it didn't show up during my own testing, but I got the same error on a fresh install of Grafana. The fix works here as well :-)