Skip to content

Commit

Permalink
add container_cpu_cfs_throttled_seconds_total metric (#886)
Browse files Browse the repository at this point in the history
* add container_cpu_cfs_throttled_seconds_total metric

* Generate new overrides yaml/libsonnet file(s).

* Generate new overrides yaml/libsonnet file(s).

Co-authored-by: Travis CI <travis@travis-ci.org>
  • Loading branch information
vsinghal13 and Travis CI committed Sep 11, 2020
1 parent 7fb1775 commit bc54d86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deploy/helm/prometheus-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ prometheus:
## container_fs_limit_bytes
## container_fs_usage_bytes
## container_memory_working_set_bytes
## container_cpu_cfs_throttled_seconds_total
url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: labelmap
Expand All @@ -308,7 +309,7 @@ prometheus:
regex: POD
sourceLabels: [container]
- action: keep
regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes)
regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes|container_cpu_cfs_throttled_seconds_total)
sourceLabels: [job, container, __name__]
- ## cadvisor aggregate container metrics
## container_network_receive_bytes_total
Expand Down
3 changes: 2 additions & 1 deletion deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ prometheus-operator:
## container_fs_limit_bytes
## container_fs_usage_bytes
## container_memory_working_set_bytes
## container_cpu_cfs_throttled_seconds_total
- url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: labelmap
Expand All @@ -1096,7 +1097,7 @@ prometheus-operator:
regex: POD
sourceLabels: [container]
- action: keep
regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes)
regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes|container_cpu_cfs_throttled_seconds_total)
sourceLabels: [job,container,__name__]
## cadvisor aggregate container metrics
## container_network_receive_bytes_total
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
{
action: "keep",
regex: "kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes)",
regex: "kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes|container_cpu_cfs_throttled_seconds_total)",
sourceLabels: [
"job",
"container",
Expand Down

0 comments on commit bc54d86

Please sign in to comment.