diff options
author | tv <tv@krebsco.de> | 2017-06-18 16:12:54 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-18 16:12:54 +0200 |
commit | 8cb9d8ac4f99ed0a930b1657c4ef2ea769c5a86c (patch) | |
tree | 4459cf7a7c5d897830fde0edfa0e41297a223980 /shared/2configs/graphite.nix | |
parent | 11a16797df89862be7dff81b6af5cd5bf41b580c (diff) | |
parent | ef2f6afaa331113eb45d43845cb42d54a1430982 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'shared/2configs/graphite.nix')
-rw-r--r-- | shared/2configs/graphite.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/shared/2configs/graphite.nix b/shared/2configs/graphite.nix index 689aedd..64222e4 100644 --- a/shared/2configs/graphite.nix +++ b/shared/2configs/graphite.nix @@ -10,7 +10,7 @@ with import <stockholm/lib>; imports = [ ]; services.graphite = { - web = { + api = { enable = true; listenAddress = "0.0.0.0"; }; @@ -23,7 +23,15 @@ with import <stockholm/lib>; MAX_UPDATES_PER_SECOND = 1 MAX_CREATES_PER_MINUTE = 50 MAX_UPDATES_PER_SECOND_ONSHUTDOWN = 9001 + + LOG_CACHE_HITS = False + LOG_CACHE_QUEUE_SORTS = False + LOG_UPDATES = False + LOG_LISTENER_CONNECTIONS = False + LOG_CREATES = True ''; + storageAggregation = '' + ''; storageSchemas = '' [carbon] pattern = ^carbon\. @@ -66,10 +74,20 @@ with import <stockholm/lib>; pattern = ^elchos\. retentions = 10s:14d,1m:90d,10m:5y + [icinga_default] + pattern = ^icinga + retentions = 10s:14d,5m:90d,10m:5y + + [icinga_internals] + pattern = ^icinga.*\.(max_check_attempts|reachable|current_attempt|execution_time|latency|state|state_type) + retentions = 5m:7d + [default] pattern = .* retentions = 60s:30d,300s:1y ''; }; }; + systemd.services.carbonCache.serviceConfig.Restart="always"; + systemd.services.graphiteApi.serviceConfig.Restart="always"; } |