Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
c1fc78c9
Unverified
Commit
c1fc78c9
authored
3 years ago
by
Damien Grisonnet
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1405 from PhilipGough/bp-9
Adjust dropped metrics from cAdvisor
parents
49eb7c66
4e96f7be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
+8
-2
8 additions, 2 deletions
...et/kube-prometheus/components/k8s-control-plane.libsonnet
manifests/kubernetes-serviceMonitorKubelet.yaml
+6
-1
6 additions, 1 deletion
manifests/kubernetes-serviceMonitorKubelet.yaml
with
14 additions
and
3 deletions
jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
+
8
−
2
View file @
c1fc78c9
...
...
@@ -127,9 +127,7 @@ function(params) {
action
:
'drop'
,
regex
:
'('
+
std
.
join
(
'|'
,
[
'container_fs_.*'
,
// add filesystem read/write data (nodes*disks*services*4)
'container_spec_.*'
,
// everything related to cgroup specification and thus static data (nodes*services*5)
'container_blkio_device_usage_total'
,
// useful for containers, but not for system services (nodes*disks*services*operations*2)
'container_file_descriptors'
,
// file descriptors limits and global numbers are exposed via (nodes*services)
'container_sockets'
,
// used sockets in cgroup. Usually not important for system services (nodes*services)
'container_threads_max'
,
// max number of threads in cgroup. Usually for system services it is not limited (nodes*services)
...
...
@@ -138,6 +136,14 @@ function(params) {
'container_last_seen'
,
// not needed as system services are always running (nodes*services)
])
+
');;'
,
},
{
sourceLabels
:
[
'__name__'
,
'container'
],
action
:
'drop'
,
regex
:
'('
+
std
.
join
(
'|'
,
[
'container_blkio_device_usage_total'
,
])
+
');.+'
,
},
],
},
{
...
...
This diff is collapsed.
Click to expand it.
manifests/kubernetes-serviceMonitorKubelet.yaml
+
6
−
1
View file @
c1fc78c9
...
...
@@ -61,11 +61,16 @@ spec:
sourceLabels
:
-
__name__
-
action
:
drop
regex
:
(container_
fs_.*|container_spec_.*|container_blkio_device_usage_total
|container_file_descriptors|container_sockets|container_threads_max|container_threads|container_start_time_seconds|container_last_seen);;
regex
:
(container_
spec_.*
|container_file_descriptors|container_sockets|container_threads_max|container_threads|container_start_time_seconds|container_last_seen);;
sourceLabels
:
-
__name__
-
pod
-
namespace
-
action
:
drop
regex
:
(container_blkio_device_usage_total);.+
sourceLabels
:
-
__name__
-
container
path
:
/metrics/cadvisor
port
:
https-metrics
relabelings
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment