diff --git a/collector/nodes.go b/collector/nodes.go index 2dd1ba56..f58f5ff2 100644 --- a/collector/nodes.go +++ b/collector/nodes.go @@ -1448,34 +1448,6 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, no return append(defaultNodeLabelValues(cluster, node), "total") }, }, - { - Type: prometheus.CounterValue, - Desc: prometheus.NewDesc( - prometheus.BuildFQName(namespace, "process", "cpu_time_seconds_sum"), - "Process CPU time in seconds", - append(defaultNodeLabels, "type"), nil, - ), - Value: func(node NodeStatsNodeResponse) float64 { - return float64(node.Process.CPU.Sys) / 1000 - }, - Labels: func(cluster string, node NodeStatsNodeResponse) []string { - return append(defaultNodeLabelValues(cluster, node), "sys") - }, - }, - { - Type: prometheus.CounterValue, - Desc: prometheus.NewDesc( - prometheus.BuildFQName(namespace, "process", "cpu_time_seconds_sum"), - "Process CPU time in seconds", - append(defaultNodeLabels, "type"), nil, - ), - Value: func(node NodeStatsNodeResponse) float64 { - return float64(node.Process.CPU.User) / 1000 - }, - Labels: func(cluster string, node NodeStatsNodeResponse) []string { - return append(defaultNodeLabelValues(cluster, node), "user") - }, - }, { Type: prometheus.CounterValue, Desc: prometheus.NewDesc( diff --git a/collector/nodes_response.go b/collector/nodes_response.go index 06586528..8c934479 100644 --- a/collector/nodes_response.go +++ b/collector/nodes_response.go @@ -296,10 +296,6 @@ type NodeStatsOSSwapResponse struct { // NodeStatsOSCPUResponse defines node stats operating system CPU usage structure type NodeStatsOSCPUResponse struct { - Sys int64 `json:"sys"` - User int64 `json:"user"` - Idle int64 `json:"idle"` - Steal int64 `json:"stolen"` LoadAvg NodeStatsOSCPULoadResponse `json:"load_average"` Percent int64 `json:"percent"` } @@ -330,8 +326,6 @@ type NodeStatsProcessMemResponse struct { // NodeStatsProcessCPUResponse defines node stats process CPU usage structure type NodeStatsProcessCPUResponse struct { Percent int64 `json:"percent"` - Sys int64 `json:"sys_in_millis"` - User int64 `json:"user_in_millis"` Total int64 `json:"total_in_millis"` }