From f3c0ceee4a6931ca6d165ab7a0968579e85caeda Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Wed, 18 Mar 2015 21:20:28 +0100 Subject: [PATCH] Change metric definitions a bit. --- main.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/main.go b/main.go index 20340d5..0a670e2 100644 --- a/main.go +++ b/main.go @@ -23,42 +23,42 @@ var ( cpuLimitVal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "mesos_task", - Name: "cpus_limit", - Help: "CPU share limit.", + Name: "cpu_limit", + Help: "Fractional CPU limit.", }, - []string{"service", "mesos_slave", "framework_id"}, + []string{"task", "mesos_slave", "framework_id"}, ) cpuSysVal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "mesos_task", - Name: "cpus_system_time_secs", - Help: "CPU system time for task.", + Name: "cpu_system_seconds_total", + Help: "Cumulative system CPU time in seconds.", }, - []string{"service", "mesos_slave", "framework_id"}, + []string{"task", "mesos_slave", "framework_id"}, ) cpuUsrVal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "mesos_task", - Name: "cpus_user_time_secs", - Help: "CPU system time for task.", + Name: "cpu_user_seconds_total", + Help: "Cumulative user CPU time in seconds.", }, - []string{"service", "mesos_slave", "framework_id"}, + []string{"task", "mesos_slave", "framework_id"}, ) memLimitVal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "mesos_task", - Name: "mem_limit_bytes", + Name: "memory_limit_bytes", Help: "Task memory limit in bytes.", }, - []string{"service", "mesos_slave", "framework_id"}, + []string{"task", "mesos_slave", "framework_id"}, ) memRssVal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "mesos_task", - Name: "mem_rss_bytes", + Name: "memory_rss_bytes", Help: "Task memory RSS usage in bytes.", }, - []string{"service", "mesos_slave", "framework_id"}, + []string{"task", "mesos_slave", "framework_id"}, ) )