make cpu metrics consistent with v2 docs

Signed-off-by: Boris Popovschi <zyqsempai@mail.ru>
This commit is contained in:
Boris Popovschi 2019-12-17 12:22:55 +02:00
parent 929ab521c6
commit b9d9bdf1fd
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ import (
var cpuMetrics = []*metric{
{
name: "cpu_usage",
name: "cpu_usage_usec",
help: "Total cpu usage (cgroup v2)",
unit: metrics.Unit("microseconds"),
vt: prometheus.GaugeValue,
@ -42,7 +42,7 @@ var cpuMetrics = []*metric{
},
},
{
name: "cpu_user_usage",
name: "cpu_user_usec",
help: "Current cpu usage in user space (cgroup v2)",
unit: metrics.Unit("microseconds"),
vt: prometheus.GaugeValue,
@ -58,7 +58,7 @@ var cpuMetrics = []*metric{
},
},
{
name: "cpu_system_usage",
name: "cpu_system_usec",
help: "Current cpu usage in kernel space (cgroup v2)",
unit: metrics.Unit("microseconds"),
vt: prometheus.GaugeValue,

View File

@ -74,7 +74,7 @@ var memoryMetrics = []*metric{
},
},
{
name: "memory_swap_Limit",
name: "memory_swap_limit",
help: "Current swap usage limit (cgroup v2)",
unit: metrics.Bytes,
vt: prometheus.GaugeValue,