forked from DGNum/infrastructure
fix(prometheus): Provide retention and scraping policy
This commit is contained in:
parent
ba2284cc68
commit
8e79b19101
1 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue