diff --git a/machines/storage01/prometheus.nix b/machines/storage01/prometheus.nix index a58bd96..bcf5cfc 100644 --- a/machines/storage01/prometheus.nix +++ b/machines/storage01/prometheus.nix @@ -20,6 +20,14 @@ in webExternalUrl = "https://${host}"; + retentionTime = "6m"; + + extraFlags = [ "--storage.tsdb.retention.size=20GB" ]; + + globalConfig = { + scrape_interval = "15s"; # if you change this settings, please do it in grafana also + }; + scrapeConfigs = [ { job_name = "prometheus";