check-value-from-metrics-plugin

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 10 Imported by: 0

README

check-value-from-metrics-plugin

Description

Transform Mackerel metrics plugin to check plugin.

Synopsis

mackerel-plugin-anyone | check-value-from-metrics-plugin -target anyone.value -gt 100

Installation

sudo mkr plugin install Arthur1/check-value-from-metrics-plugin

Setting for mackerel-agent

[plugin.checks.check-value-from-mackerel-plugin-anyone]
command = "mackerel-plugin-anyone | /opt/mackerel-agent/plugins/bin/check-value-from-metrics-plugin -target anyone.value -gt 100"

Usage

Options
  -critical
        create WARNING alert when target value meets condition (default true)
  -gt float
        set condition: [target value] > [option value] (default NaN)
  -lt float
        set condition: [target value] < [option value] (default NaN)
  -name string
        checker name for report (default "check-value-from-metrics-plugin")
  -strict
        create UNKNOWN alert when target metric is not found
  -target string
        target metric key
  -warning
        create CRITICAL alert when target value meets condition

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳