-
Notifications
You must be signed in to change notification settings - Fork 385
MON-4115: expose label metrics for jobs and cronjobs #2553
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,6 +175,11 @@ type KubeStateMetricsConfig struct { | |
| Tolerations []v1.Toleration `json:"tolerations,omitempty"` | ||
| // Defines a pod's topology spread constraints. | ||
| TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` | ||
| // Defines label-metrics' allow list for resources in addition to the default one. | ||
| // Currently, this is only supported for `jobs` and `cronjobs`, due to cardinality concerns. | ||
| // This follows the format: resource1=[label1,label2,labelN...],...,resourceN=[...], | ||
| // which is then validated and appended to the default labels' allow list. | ||
| AdditionalLabelsAllowList *string `json:"additionalLabelsAllowList,omitempty"` | ||
|
Comment on lines
+178
to
+182
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marioferh Following on @machine424's comment, could you affirm if this would be okay to port to the CRD as is, or if you believe there are any changes to be made here? Thanks!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's still a WIP with the api folks, so far I'd prefer to wait until we get an ack from them in Prometheus and PrometheusK8s resources before adding any additional fields. While it seems pretty much straightforward I'd hold this for now. |
||
| } | ||
|
|
||
| // The `PrometheusK8sConfig` resource defines settings for the Prometheus | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Taken from: https://github.com/kubernetes/kube-state-metrics/blob/5b7a11eed724511405a0148026ee96ac426f3787/pkg/options/types.go#L237, to ensure the additional list can be validated.