From: Zack Cerza Date: Wed, 19 Jul 2017 20:31:37 +0000 (-0700) Subject: Document whisper settings X-Git-Tag: v1.0~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2cc6e4053208180b5148e1d44b86d3599e3cb72;p=cephmetrics.git Document whisper settings Signed-off-by: Zack Cerza --- diff --git a/ansible/README.md b/ansible/README.md index 329a37b..40a7930 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -52,6 +52,14 @@ You may override certain variables by creating a `vars.yml` file: - `cluster`: The name of the Ceph cluster. Default: ceph - `firewalld_zone`: The `firewalld` zone to use when opening ports for Grafana and Carbon. Default: public - `devel_mode`: Whether to perform a development-mode deployment vs. a production deployment. Default: true +- `whisper`: May be used to configure [whisper retention](http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-schemas-conf) settings. Default: + ``` + whisper: + retention: + - ['10s', '7d'] + - ['1m', '30d'] + - ['15m', '5y'] + ``` These variables are only relevent when `devel_mode` is true: - `use_epel`: Whether or not to use EPEL and grafana.com instead of ceph.com-sourced packages for dependencies. Default: false diff --git a/ansible/roles/ceph-grafana/tasks/configure_carbon.yml b/ansible/roles/ceph-grafana/tasks/configure_carbon.yml index 1f36185..bc37ccb 100644 --- a/ansible/roles/ceph-grafana/tasks/configure_carbon.yml +++ b/ansible/roles/ceph-grafana/tasks/configure_carbon.yml @@ -10,7 +10,7 @@ - name: Fail when the the first whisper retention value is not 10s fail: - msg: "The first whisper retention value must be '10s', not '{{ whisper.retention[0][0] }}'" + msg: "The first whisper retention value must be '10s', not '{{ whisper.retention[0][0] }}' in order to match collectd's interval" failed_when: whisper.retention[0][0] != '10s' any_errors_fatal: true