Skip to content

Support for multiple Graphites#54

Open
n0740 wants to merge 5 commits intoklen:developfrom
n0740:multiple-graphites
Open

Support for multiple Graphites#54
n0740 wants to merge 5 commits intoklen:developfrom
n0740:multiple-graphites

Conversation

@n0740
Copy link
Copy Markdown
Contributor

@n0740 n0740 commented Jun 19, 2015

Adds ability to check more than one Graphite.

Describe them in config:

{
    ...
    // Drop params for single graphite:
    // "graphite_url": "",
    // "graphite_username": null,
    // "graphite_password": null,

    // Then set the list:
    "graphites": [
      {
         "name": "default",
         "url": "http://localhost",
         "username": "username",
         "password": "password"
      },
      {
        "name": "another-one",
        "url": "http://another-one",
      }
    ],
    ...
}

And set alets for each Graphite by it's name:

{
  ...
  "alerts": [
    {
      // If param "graphite" is skipped alert will check the "default"
      // "graphite": "default".
      "name": "Memory",
      "query": "aliasByNode(collectd.*.memory.memory-free, 1)",
      "interval": "10minute",
      "format": "bytes",
      "rules": ["warning: < 300MB", "critical: > 200MB"]
    },
    {
      // Alert for another graphite
      "graphite": "another-one",
      "name": "Memory",
      "query": "aliasByNode(collectd.*.memory.memory-free, 1)",
      "interval": "10minute",
      "format": "bytes",
      "rules": ["warning: < 300MB", "critical: > 200MB"]
    },
  ]
  ...
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant