Skip to content

Instantly share code, notes, and snippets.

@Data5tream
Last active October 14, 2024 09:11
Show Gist options
  • Select an option

  • Save Data5tream/16f02eed107d6e4be82111ee0c5d3e8e to your computer and use it in GitHub Desktop.

Select an option

Save Data5tream/16f02eed107d6e4be82111ee0c5d3e8e to your computer and use it in GitHub Desktop.
Automatically reloads grafana dashboards once an hour
// ==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