Skip to content

Commit

Permalink
Drops kube_endpoint_ports metric from KSM due to kubernetes/kube-stat…
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough committed Nov 12, 2024
1 parent e2805bd commit 8517424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
],
metricRelabelings: [
{
// Dropping metric deprecated from kube-state-metrics 2.6.0 version
// Dropping metric deprecated from kube-state-metrics 2.6.0 & 2.14.0 versions
sourceLabels: ['__name__'],
regex: 'kube_endpoint_address_not_ready|kube_endpoint_address_available',
regex: 'kube_(endpoint_(address_not_ready|address_available|ports))',
action: 'drop',
},
],
Expand Down
2 changes: 1 addition & 1 deletion manifests/kubeStateMetrics-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
interval: 30s
metricRelabelings:
- action: drop
regex: kube_endpoint_address_not_ready|kube_endpoint_address_available
regex: kube_(endpoint_(address_not_ready|address_available|ports))
sourceLabels:
- __name__
port: https-main
Expand Down

0 comments on commit 8517424

Please sign in to comment.