prometheus: keep 30ds
This commit is contained in:
parent
72cd1b5a33
commit
05488befc5
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
|||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
# keep data for 30 days
|
||||
extraFlags = "--storage.tsdb.retention.time=30d"
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "nginx";
|
||||
|
|
Loading…
Reference in a new issue