Last active
October 14, 2024 09:11
-
-
Save Data5tream/16f02eed107d6e4be82111ee0c5d3e8e to your computer and use it in GitHub Desktop.
Automatically reloads grafana dashboards once an hour
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Grafana dash autoreload | |
| // @namespace https://github.com/Data5tream | |
| // @version 0.2.0 | |
| // @description Reload grafana dashboards once an hour | |
| // @author Simon Barth | |
| // @match https://*.grafana.net/d/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=grafana.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| if (!window.autoWindowReloadInterval) { | |
| window.autoWindowReloadInterval = setInterval(location.reload, 1800000); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment