Expected behavior (what you expected to happen):
using a counter metric, every time you add a value the counter should be increased by the value.
Actual behavior (what actually happened):
the counter metric is set to the value it should be increased. it is not counting up.
Steps to reproduce:
- have a hook with a counter metric and set "action":"add" and "value":1
- execute this hook every minute
- metrics is always set to 1 and not counting up
Environment:
- Shell-operator version: v1.14.3
- Kubernetes version: v1.34.4
- Installation type (kubectl apply, helm chart, etc.): long running container started from shell-operator docker image and hook is triggered by cron config
Anything else we should know?:
This issue came up after updating from shell operator v1.6.2 to v1.14.3. with v1.6.2 the behavior was correct and the counter was counting up. Maybe this was introduced by https://github.com/flant/shell-operator/releases/tag/v1.11.0
Expected behavior (what you expected to happen):
using a counter metric, every time you add a value the counter should be increased by the value.
Actual behavior (what actually happened):
the counter metric is set to the value it should be increased. it is not counting up.
Steps to reproduce:
Environment:
Anything else we should know?:
This issue came up after updating from shell operator v1.6.2 to v1.14.3. with v1.6.2 the behavior was correct and the counter was counting up. Maybe this was introduced by https://github.com/flant/shell-operator/releases/tag/v1.11.0