Skip to content

Instantly share code, notes, and snippets.

@wrossmann
Created December 20, 2017 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wrossmann/fcb04d83c460e4306935bd290a8c145f to your computer and use it in GitHub Desktop.
Save wrossmann/fcb04d83c460e4306935bd290a8c145f to your computer and use it in GitHub Desktop.
In Metrics:
host-*.CPUload.{load1,load5,load15}
Function:
averageSeriesWithWildcards($in, 1)
Out Metrics, Expected:
host-*.CPUload.load1,
host-*.CPUload.load5,
host-*.CPUload.load15
[exactly 3 series]
Out Metrics, Actual:
host-01.CPUload.load1,
host-01.CPUload.load5,
host-01.CPUload.load15,
host-02.CPUload.load1,
... [not aggregated at all, eg: 2 hosts * 3 loads = 6 series]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment