Skip to content

Commit

Permalink
Remap process_cpu_seconds_total to process_cpu_total
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-lesko committed Jan 16, 2025
1 parent bcc5ab9 commit 40c286b
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kube_apiserver_metrics/changelog.d/19415.added
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add process_cpu_seconds_total to kube_apiserver_metrics check
Add process_cpu_total to kube_apiserver_metrics check
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'apiserver_request_duration_seconds': 'request_duration_seconds',
'apiserver_request_latencies': 'request_latencies',
'apiserver_request_latency_seconds': 'request_latencies',
'process_cpu_seconds_total': 'process_cpu_seconds_total',
'process_cpu_seconds_total': 'process_cpu_total',
'process_resident_memory_bytes': 'process_resident_memory_bytes',
'process_virtual_memory_bytes': 'process_virtual_memory_bytes',
'grpc_client_started_total': 'grpc_client_started_total',
Expand Down
2 changes: 1 addition & 1 deletion kube_apiserver_metrics/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ kube_apiserver.http_requests_total,gauge,,request,,The accumulated number of HTT
kube_apiserver.http_requests_total.count,count,,request,,The monotonic count of the number of HTTP requests made,0,kubernetes_api_server_metrics,total count of requests,
kube_apiserver.kubernetes_feature_enabled,gauge,,,,"Whether a Kubernetes feature gate is enabled or not, identified by name and stage (alpha; Kubernetes 1.26+)",0,kubernetes_api_server_metrics,kubernetes feature enabled,
kube_apiserver.longrunning_gauge,gauge,,request,,"The gauge of all active long-running apiserver requests broken out by verb, group, version, resource, scope, and component. Not all requests are tracked this way.",-1,kubernetes_api_server_metrics,long running gauges,
kube_apiserver.process_cpu_seconds_total,count,,second,,"Total user and system CPU time spent in seconds.",0,kubernetes_api_server_metrics,process cpu seconds total,
kube_apiserver.process_cpu_total,count,,second,,"Total user and system CPU time spent in seconds.",0,kubernetes_api_server_metrics,process cpu total,
kube_apiserver.process_resident_memory_bytes,gauge,,byte,,The resident memory size in bytes,0,kubernetes_api_server_metrics,process rss,
kube_apiserver.process_virtual_memory_bytes,gauge,,byte,,The virtual memory size in bytes,0,kubernetes_api_server_metrics,process virtual memory,
kube_apiserver.registered_watchers,gauge,,object,,The number of currently registered watchers for a given resource,0,kubernetes_api_server_metrics,number of watchers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class TestKubeAPIServerMetrics:
'admission_controller_admission_duration_seconds.count',
'request_latencies.sum',
'request_latencies.count',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestKubeAPIServerMetrics:
'request_duration_seconds.sum',
'request_duration_seconds.count',
'registered_watchers',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd_request_duration_seconds.sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TestKubeAPIServerMetrics:
'request_duration_seconds.sum',
'request_duration_seconds.count',
'registered_watchers',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd_request_duration_seconds.sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TestKubeAPIServerMetrics:
'request_duration_seconds.sum',
'request_duration_seconds.count',
'registered_watchers',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd_request_duration_seconds.sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestKubeAPIServerMetrics:
'admission_controller_admission_duration_seconds.count',
'request_duration_seconds.sum',
'request_duration_seconds.count',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd_request_duration_seconds.sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class TestKubeAPIServerMetrics:
NAMESPACE + '.admission_controller_admission_duration_seconds.count',
NAMESPACE + '.request_duration_seconds.sum',
NAMESPACE + '.request_duration_seconds.count',
NAMESPACE + '.process_cpu_seconds_total',
NAMESPACE + '.process_cpu_total',
NAMESPACE + '.process_resident_memory_bytes',
NAMESPACE + '.process_virtual_memory_bytes',
NAMESPACE + '.etcd_request_duration_seconds.sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestKubeAPIServerMetrics:
'admission_controller_admission_duration_seconds.count',
'request_duration_seconds.sum',
'request_duration_seconds.count',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd.db.total_size',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestKubeAPIServerMetrics:
'admission_controller_admission_duration_seconds.count',
'request_duration_seconds.sum',
'request_duration_seconds.count',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd.db.total_size',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestKubeAPIServerMetrics:
'admission_controller_admission_duration_seconds.count',
'request_duration_seconds.sum',
'request_duration_seconds.count',
'process_cpu_seconds_total',
'process_cpu_total',
'process_resident_memory_bytes',
'process_virtual_memory_bytes',
'etcd.db.total_size',
Expand Down

0 comments on commit 40c286b

Please sign in to comment.