Skip to content

Monitor K8S Helm3 release, rollback on metrics behavior

License

Notifications You must be signed in to change notification settings

yq314/helm3-monitor

Repository files navigation

Helm3 Monitor Plugin

Monitor a Helm3 release, rollback to a previous version depending on the result of a PromQL (Prometheus) query result

Install

> helm plugin install https://github.com/yq314/helm3-monitor

Usage

A rollback happen only if the number of result from the query is greater than 0.

You can find a step-by-step example in the ./examples directory.

> helm monitor prometheus --prometheus=http://prometheus:9090 \
    <release_name> \
    'rate(http_requests_total{statusClass!="2XX"}[5m]) / rate(http_requests_total[5m]) > 0.01'

About

Monitor K8S Helm3 release, rollback on metrics behavior

Resources

License

Stars

Watchers

Forks

Packages

No packages published