Skip to content

Instantly share code, notes, and snippets.

@bergquist
Created December 16, 2016 07:25
Show Gist options
  • Save bergquist/9a12f6c08e4820bcc4cd8416e322c6c9 to your computer and use it in GitHub Desktop.
Save bergquist/9a12f6c08e4820bcc4cd8416e322c6c9 to your computer and use it in GitHub Desktop.
"targets": [
{
"addAppToAlias": false,
"addHostToAlias": false,
"functionList": [
{ "func": "aggregate.min"}
],
"apps": [],
"hosts": [
"staples-lab-1"
],
"metrics": [
{
"alias": "*",
"metric": "os.cpu.all.*_percentage"
}
],
"rawQuery": "",
"refId": "A"
}
],
@bergquist
Copy link
Author

I suggest that.

addAppToAlias and addHostToAlias should be combined into an array of tags that should be included.
ex "includeTagsInAlias": [ 'app', 'host' ],

"apps" and "hosts" should be combined into one set of arrays. (map[string][]string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment