This utility prints storage-schema and aggregation settings matching a given metric name by using carbon methods and configuration directly. This ensures results equal to the carbon behavior and should help debugging metric resolution issues.
This is a pybuilder project. You will need to install pybuilder by:
pip install pybuilder
pyb verify
pyb install_dependencies
pyb publish
There is a default configuration assuming the following paths:
- CARBON_CONF_DIR: /etc/carbon
- CARBON_LIB_DIR: /opt/graphite/lib
user@graphite-host ~ $ whisper-schema-info gis.devgis30.icinga.ntp_time.offset
STORAGE CONFIG:
(Using first matching pattern: ^\w{3}\.\w+\.icinga\.)
Archive 0: Seconds per point: 300, Datapoints to save: 2016
Archive 1: Seconds per point: 900, Datapoints to save: 5760
Archive 2: Seconds per point: 3600, Datapoints to save: 8760
AGGREGATION CONFIG:
(Using first matching pattern: .*)
xFilesFactor: 0.3
Aggregation method: average
whisper-schema-info --help
whisper-schema-info --carbonconfdir /opt/graphite/conf --carbonlibdir /opt/graphite/lib <metric name>