summaryrefslogtreecommitdiffstats
path: root/itl/plugins-contrib.d/metrics.conf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
commit56ae875861ab260b80a030f50c4aff9f9dc8fff0 (patch)
tree531412110fc901a5918c7f7442202804a83cada9 /itl/plugins-contrib.d/metrics.conf
parentInitial commit. (diff)
downloadicinga2-56ae875861ab260b80a030f50c4aff9f9dc8fff0.tar.xz
icinga2-56ae875861ab260b80a030f50c4aff9f9dc8fff0.zip
Adding upstream version 2.14.2.upstream/2.14.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'itl/plugins-contrib.d/metrics.conf')
-rw-r--r--itl/plugins-contrib.d/metrics.conf62
1 files changed, 62 insertions, 0 deletions
diff --git a/itl/plugins-contrib.d/metrics.conf b/itl/plugins-contrib.d/metrics.conf
new file mode 100644
index 0000000..856ba75
--- /dev/null
+++ b/itl/plugins-contrib.d/metrics.conf
@@ -0,0 +1,62 @@
+/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
+
+object CheckCommand "graphite" {
+ command = [ PluginContribDir + "/check_graphite" ]
+
+ arguments = {
+ "-u" = {
+ value = "$graphite_url$"
+ description = "Target url"
+ required = true
+ }
+ "-m" = {
+ value = "$graphite_metric$"
+ description = "Metric path string"
+ required = true
+ }
+ "-s" = {
+ value = "$graphite_shortname$"
+ description = "Metric short name (used for performance data)"
+ }
+ "-d" = {
+ value = "$graphite_duration$"
+ description = "Length, in minute of data to parse (default: 5)"
+ }
+ "-f" = {
+ value = "$graphite_function$"
+ description = "Function applied to metrics for thresholds (default: average)"
+ }
+ "-w" = {
+ value = "$graphite_warning$"
+ description = "Warning threshold"
+ required = true
+ }
+ "-c" = {
+ value = "$graphite_critical$"
+ description = "Critical threshold"
+ required = true
+ }
+ "-U" = {
+ value = "$graphite_units$"
+ description = "Adds a text tag to the metric count in the plugin output. Useful to identify the metric units. Doesn't affect data queries."
+ }
+ "-M" = {
+ value = "$graphite_message$"
+ description = "Text message to output (default: 'metric count:')"
+ }
+ "-z" = {
+ set_if = "$graphite_zero_on_error$"
+ description = "Return 0 on a graphite 500 error"
+ }
+ "-l" = {
+ set_if = "$graphite_link_graph$"
+ description = "Add a link in the plugin output, showing a 24h graph for this metric in graphite."
+ }
+ }
+
+ vars.graphite_duration = "5"
+ vars.graphite_function = "average"
+ vars.graphite_message = "metric count:"
+ vars.graphite_zero_on_error = false
+ vars.graphite_link_graph = false
+}