Expected behavior
1 metric is reported per container
Environment (please complete the following information):
Version-Checker: v0.8.0+
Kubernetes: v1.27.16
Grafana: 11.2.0
Prometheus: 2.54.1
Additional context
The root cause of the bug is here - using partial labels to delete metrics, which only contain namespace and pod. This actually deletes all the metrics for a pod when really we want to delete only the metric for the current container that is being checked.
You can easily add a container label to this list and it should fix the issue.
Describe the bug If a pod has more than 1 container than there is only 1 metric reported
To Reproduce Steps to reproduce the behavior:
Expected behavior 1 metric is reported per container
Environment (please complete the following information):
Additional context The root cause of the bug is here - using partial labels to delete metrics, which only contain namespace and pod. This actually deletes all the metrics for a pod when really we want to delete only the metric for the current container that is being checked. You can easily add a container label to this list and it should fix the issue.