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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址