Added missing labels in the KSM deployment file#12663
Added missing labels in the KSM deployment file#12663ShubhamRwt wants to merge 1 commit intostrimzi:mainfrom
Conversation
Signed-off-by: ShubhamRwt <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12663 +/- ##
=========================================
Coverage 75.07% 75.08%
- Complexity 6513 6514 +1
=========================================
Files 377 377
Lines 25092 25092
Branches 3268 3268
=========================================
+ Hits 18838 18840 +2
+ Misses 4914 4912 -2
Partials 1340 1340 🚀 New features to boost your workflow:
|
scholzj
left a comment
There was a problem hiding this comment.
These labels are a mess and everyone expects something else from them. I wonder if you should use a completely different labels instead.
|
@scholzj I can do that but I was wondering that would mean more changes in the KSM yaml file. I think this is something which should have been there from the start. The |
|
@ShubhamRwt the kube-state-metrics was originally added by me. I used the kube-state-metrics Helm chart in the beginning to add this. Probably, I removed the labels for the service... |
|
I think it is clear that the labels are missing. The question is which labels we want to use. From our experience, |
|
@scholzj I got your point, do you have any suggestions for the same? |
|
Let's see what others think about the labels first. |
Frawless
left a comment
There was a problem hiding this comment.
@ShubhamRwt the kube-state-metrics was originally added by me. I used the kube-state-metrics Helm chart in the beginning to add this. Probably, I removed the labels for the service... As the
ServiceMonitorselects theServicevia the labels, the example is not complete. So I would vote for adding them.
Sounds to me like it should be there so +1 for me.
Type of change
Description
This commit adds the missing app.kubernetes.io/name and app.kubernetes.io/instance labels to the strimzi-kube-state-metrics Service resource in the KSM.yaml of metrics example configuration. The ServiceMonitor seems to look for the label and since it is not able find them in the Service, the metrics are not scraped properly and therefore they don't appear in the prometheus metrics. This PR fixes the issue
Checklist
Please go through this checklist and make sure all applicable tasks have been done