prometheus: keep 30ds

This commit is contained in:
Ingolf Wagner 2019-12-24 12:30:47 +13:00
parent 72cd1b5a33
commit 05488befc5
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -12,6 +12,8 @@
services.prometheus = { services.prometheus = {
enable = true; enable = true;
# keep data for 30 days
extraFlags = "--storage.tsdb.retention.time=30d"
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "nginx"; job_name = "nginx";