Skip to content

kube-HPC/alerts-threshold-manager

Repository files navigation

Build Status Coverage Status

Documentation

The alerts-threshold-manager manages the thresholds which are used in the prometheus alerts rules:

  • It creates each threshold as a prometheus gauge metric.
  • It enables to get and set the thresholds by a REST api:
    • GET <host>:<port>/thresholds Getting all threshold as a json list, each item include name, value and descr.
    • PUT <host>:<port>/thresholds Setting some thresholds with a body of style: { thres1: value1, thres2: value2, ... } Response body includes all thresholds in the same style.
  • Default values may be set using env variables for:
    • Prometheus port: METRICS_PORT
    • REST port: REST_PORT
    • Each one of the thresholds: see config.base.js

About

Threshold manager (enables get and set) for thresholds used in Prometheus alert rules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published