-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - thresholds #292
Comments
|
Do you have an idea as to how this might be used in an environment? |
|
Yep. You might use thresholds with the processes plugin to define a threshold of processes. For example, if there are sixteen Nginx processes then emit okay, if less than sixteen emit a warning, if less than 12 emit a critical notification. It's basically very simple threshold alerting a la a monitoring system but in the form of a collectd notification metric. Super useful. Here's an example for monitoring Graphite: |
```puppet
class { 'collectd::plugin::processes':
process_matches => [
'carbon-cache',
'python.+carbon-cache',
],
}
class { 'collectd::plugin::threshold':
plugins => {
processes => {
instance => 'carbon-cache',
types => {
data_source => 'processes',
warning_min => 16,
failure_min => 12,
},
},
},
}
```
Fixes voxpupuli#292 (Above example from this issue).
|
@smortex I don't understand your comment? |
|
Oh, sorry to be unclear…
and in the code: I guess you meant: |
|
@smortex No I didn't. I used that example and then said: "Here's an example for monitoring Graphite:" Those are two separate examples. |
```puppet
class { 'collectd::plugin::processes':
process_matches => [
'carbon-cache',
'python.+carbon-cache',
],
}
class { 'collectd::plugin::threshold':
plugins => {
processes => {
instance => 'carbon-cache',
types => {
data_source => 'processes',
warning_min => 16,
failure_min => 12,
},
},
},
}
```
Fixes voxpupuli#292 (Above example from this issue).
|
Ah! I don't use nginx nor graphite, and am new to the threshold thing in collectd. I did not understood it was 2 different things and wanted to be sure that the mismatch was a typo and not something "magic". So it's neither something magic or a typo… and everything is fine, thanks! Sorry for the noise 😃 |
```puppet
class { 'collectd::plugin::processes':
process_matches => [
'carbon-cache',
'python.+carbon-cache',
],
}
class { 'collectd::plugin::threshold':
plugins => {
processes => {
instance => 'carbon-cache',
types => {
data_source => 'processes',
warning_min => 2,
failure_min => 1,
},
},
},
}
```
Fixes voxpupuli#292 (Above example from this issue).
```puppet
class { 'collectd::plugin::processes':
process_matches => [
'carbon-cache',
'python.+carbon-cache',
],
}
class { 'collectd::plugin::threshold':
plugins => {
processes => {
instance => 'carbon-cache',
types => {
data_source => 'processes',
warning_min => 2,
failure_min => 1,
},
},
},
}
```
Fixes voxpupuli#292 (Above example from this issue).
It would be very nice to implement thresholds support
https://collectd.org/wiki/index.php/Notifications_and_thresholds
The text was updated successfully, but these errors were encountered: