flant / shell-operator

Shell-operator is a tool for running event-driven scripts in a Kubernetes cluster
https://flant.github.io/shell-operator/
Apache License 2.0
2.39k stars 214 forks source link

update merics' labelset if needed #628

Closed miklezzzz closed 1 month ago

miklezzzz commented 1 month ago

Overview

This pr update the way metrics with different label sets and the same name are stored in a collector. If a new metric has a new label, this new label is added to the collector and all previous metrics in the collector get it with an empty string as its value.

What this PR does / why we need it

Closes #616

Special notes for your reviewer