Skip to content

Commit

Permalink
Reduce apiserver metrics cardinality of non-core APIs
Browse files Browse the repository at this point in the history
* Reduce `apiserver_request_duration_seconds_count` cardinality
by dropping series for non-core Kubernetes APIs. This is done
to match `apiserver_request_duration_seconds_count` relabeling
* These two relabels must be performed the same way to avoid
affecting new SLO calculations (upcoming)
* See kubernetes-monitoring/kubernetes-mixin#498

Related: #596
  • Loading branch information
dghubble committed Sep 13, 2020
1 parent db8e94b commit 694e803
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/prometheus/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ data:
- source_labels: [__name__, group]
regex: apiserver_request_duration_seconds_bucket;.+
action: drop
- source_labels: [__name__, group]
regex: apiserver_request_duration_seconds_count;.+
action: drop
# Scrape config for node (i.e. kubelet) /metrics (e.g. 'kubelet_'). Explore
# metrics from a node by scraping kubelet (127.0.0.1:10250/metrics).
Expand Down

0 comments on commit 694e803

Please sign in to comment.