Skip to content

Conversation

@n0740
Copy link
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