-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kube_*_annotations metrics #1468
Conversation
Welcome @sylr! |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
I'm generally happy with this. cc @lilic as she lead the label allow work (I tried to approve the CI run, but github is returning 500 errors consistently every time I press it) |
I get the same error yes, but works on other PRs. Can you maybe force push @sylr, thanks! |
I merged master into this branch to trigger the CI. |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
I'm just going to leave a link to the relevant issue here so that the PR is correctly linked to the issue with lots of discussion. #941 Furthermore it's probably important to get @sylr 's thoughts on #1495 as it appears to solve the same use-case but more closely following the design of the label metric |
@lilic can you approve the workflow please ? |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of comments, thanks for your patience! We can do majority in a follow up as well if you agree to it or in this tone.
internal/store/utils.go
Outdated
@@ -172,6 +176,26 @@ func isPrefixedNativeResource(name v1.ResourceName) bool { | |||
return strings.Contains(string(name), v1.ResourceDefaultNamespacePrefix) | |||
} | |||
|
|||
// createAnnotationKeysValues takes in passed kubernetes annotations and allowed list in kubernetes label format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// createAnnotationKeysValues takes in passed kubernetes annotations and allowed list in kubernetes label format | |
// createAnnotationKeysValues takes in passed kubernetes annotations and an allowed list in Kubernetes label format |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>
Guys, could we move forward and merge this ? The size of it PR make it so basically any other PR merged onto master will create conflicts, I already performed two merge/conflicts resolutions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgrisonnet, lilic, mrueg, sylr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* [FEATURE] Add --use-apiserver-cache flag to set resourceVersion=0 for ListWatch requests kubernetes#1548 * [FEATURE] Introduce metrics for Kubernetes object annotations kubernetes#1468 * [FEATURE] Introduce start time metric for containers in terminated state kubernetes#1519 * [FEATURE] Introduce metrics for cronjob job history limits kubernetes#1535 * [FEATURE] Add system_uuid dimension to kube_node_info metric kubernetes#1535 * [FEATURE] Add available replica metric for statefulsets kubernetes#1532 * [FEATURE] Add ready replica metric for deployments kubernetes#1534 * [CHANGE] Update go clients for Kubernetes to support 1.22 kubernetes#1545 * [CHANGE] Use new promlint package and update prometheus cli to 2.28.1 kubernetes#1531
…eration This PR fixes the regression introduced on `kube_persistentvolumeclaim_labels` functionality after kubernetes#1468. This also implements `kube_persistentvolumeclaim_annotations`. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
…#1362) * Enable configuring kubernetes annotation metrics With kubernetes/kube-state-metrics#1468 kube-state-metrics v2.2.0 added the possibility to configure annotation metrics, similar to how label metrics are currently configured. This change adds a configuration option for configuring annotation metrics to this helm chart. Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de> * Bump chart version Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de>
…eration This PR fixes the regression introduced on `kube_persistentvolumeclaim_labels` functionality after kubernetes#1468. This also implements `kube_persistentvolumeclaim_annotations`. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
…eration This PR fixes the regression introduced on `kube_persistentvolumeclaim_labels` functionality after kubernetes#1468. This also implements `kube_persistentvolumeclaim_annotations`. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
…eration This PR fixes the regression introduced on `kube_persistentvolumeclaim_labels` functionality after kubernetes#1468. This also implements `kube_persistentvolumeclaim_annotations`. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
…prometheus-community#1362) * Enable configuring kubernetes annotation metrics With kubernetes/kube-state-metrics#1468 kube-state-metrics v2.2.0 added the possibility to configure annotation metrics, similar to how label metrics are currently configured. This change adds a configuration option for configuring annotation metrics to this helm chart. Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de> * Bump chart version Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de> Signed-off-by: QuentinBisson <quentin@giantswarm.io>
These metrics were added in kubernetes/kube-state-metrics#1468 but for us don't add any valuable information. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
… (#1362) * Enable configuring kubernetes annotation metrics With kubernetes/kube-state-metrics#1468 kube-state-metrics v2.2.0 added the possibility to configure annotation metrics, similar to how label metrics are currently configured. This change adds a configuration option for configuring annotation metrics to this helm chart. Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de> * Bump chart version Signed-off-by: Maximilian Bischoff <maximilian.bischoff@inovex.de>
These metrics were added in kubernetes/kube-state-metrics#1468 but for us don't add any valuable information. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
What this PR does / why we need it:
Adds kube_annotations for every existing kube_labels counter parts.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #