Skip to content

Instantly share code, notes, and snippets.

@shaharke
Forked from amosshapira/whisper max archive
Last active February 10, 2018 10:30
Show Gist options
  • Save shaharke/6ef12863c3c22b86f7f7a305ef3e162d to your computer and use it in GitHub Desktop.
Save shaharke/6ef12863c3c22b86f7f7a305ef3e162d to your computer and use it in GitHub Desktop.
Example (untested) of tracking maximum value of metric in the past year.
Ref: http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-schemas-conf
storage-schemas.conf:
[year_max]
pattern = yearMax$
retentions = 1m:1d,1d:1y
storage-aggregation.conf:
[year_max]
pattern = yearMax$
xFileFactor = 0
aggregationMethod = max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment