Skip to content

Instantly share code, notes, and snippets.

@amosshapira
Last active February 10, 2018 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amosshapira/c5478673d780372a8512f65dfcda1321 to your computer and use it in GitHub Desktop.
Save amosshapira/c5478673d780372a8512f65dfcda1321 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 = 1y: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