graphite: copy storage-schemas from puppet-graphite
This is the storage-schemas configuration file currently deployed by puppet-graphite. Apply it to the container so we maintain the same retention, etc. Change-Id: Ia733bf4a958a559ce3921094bb3f0875365157ce
This commit is contained in:
parent
9f95c450cb
commit
93445ff303
@ -8,6 +8,11 @@
|
||||
src: docker-compose.yaml.j2
|
||||
dest: /etc/graphite-docker/docker-compose.yaml
|
||||
|
||||
- name: Write storage config file
|
||||
template:
|
||||
src: storage-schemas.conf.j2
|
||||
dest: /etc/graphite-docker/storage-schemas.conf
|
||||
|
||||
- name: Write nginx override config
|
||||
template:
|
||||
src: graphite-statsd.conf.j2
|
||||
|
@ -10,6 +10,7 @@ services:
|
||||
volumes:
|
||||
- /etc/graphite-docker/graphite-statsd.conf:/etc/nginx/sites-enabled/graphite-statsd.conf
|
||||
- /etc/graphite-docker/statsd.js:/opt/statsd/config/udp.js
|
||||
- /etc/graphite-docker/storage-schemas.conf:/opt/graphite/conf/storage-schemas.conf
|
||||
- /etc/letsencrypt-certs:/etc/letsencrypt-certs
|
||||
- /opt/graphite/storage:/opt/graphite/storage
|
||||
- /var/log/graphite:/var/log/
|
||||
|
18
playbooks/roles/graphite/templates/storage-schemas.conf.j2
Normal file
18
playbooks/roles/graphite/templates/storage-schemas.conf.j2
Normal file
@ -0,0 +1,18 @@
|
||||
# Schema definitions for Whisper files. Entries are scanned in order,
|
||||
# and first match wins. This file is scanned for changes every 60 seconds.
|
||||
#
|
||||
# [name]
|
||||
# pattern = regex
|
||||
# retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...
|
||||
|
||||
["stats.timers"]
|
||||
pattern = ^stats.timers.*
|
||||
retentions = 10s:8h,60s:7d,1h:90d,1d:1y
|
||||
|
||||
["stats"]
|
||||
pattern = ^stats.*
|
||||
retentions = 10s:8h,60s:7d,1h:1y,1d:5y
|
||||
|
||||
["default"]
|
||||
pattern = .*
|
||||
retentions = 60:90d
|
Loading…
Reference in New Issue
Block a user