fix(prometheus): Provide retention and scraping policy

This commit is contained in:
sinavir 2024-04-14 01:08:49 +02:00
parent ba2284cc68
commit 8e79b19101

View file

@ -20,6 +20,14 @@ in
webExternalUrl = "https://${host}"; 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 = [ scrapeConfigs = [
{ {
job_name = "prometheus"; job_name = "prometheus";