Skip to content
This repository was archived by the owner on Feb 29, 2020. It is now read-only.

Commit f3c0cee

Browse files
committed
Change metric definitions a bit.
1 parent 4cc889c commit f3c0cee

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

main.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,42 +23,42 @@ var (
2323
cpuLimitVal = prometheus.NewGaugeVec(
2424
prometheus.GaugeOpts{
2525
Namespace: "mesos_task",
26-
Name: "cpus_limit",
27-
Help: "CPU share limit.",
26+
Name: "cpu_limit",
27+
Help: "Fractional CPU limit.",
2828
},
29-
[]string{"service", "mesos_slave", "framework_id"},
29+
[]string{"task", "mesos_slave", "framework_id"},
3030
)
3131
cpuSysVal = prometheus.NewGaugeVec(
3232
prometheus.GaugeOpts{
3333
Namespace: "mesos_task",
34-
Name: "cpus_system_time_secs",
35-
Help: "CPU system time for task.",
34+
Name: "cpu_system_seconds_total",
35+
Help: "Cumulative system CPU time in seconds.",
3636
},
37-
[]string{"service", "mesos_slave", "framework_id"},
37+
[]string{"task", "mesos_slave", "framework_id"},
3838
)
3939
cpuUsrVal = prometheus.NewGaugeVec(
4040
prometheus.GaugeOpts{
4141
Namespace: "mesos_task",
42-
Name: "cpus_user_time_secs",
43-
Help: "CPU system time for task.",
42+
Name: "cpu_user_seconds_total",
43+
Help: "Cumulative user CPU time in seconds.",
4444
},
45-
[]string{"service", "mesos_slave", "framework_id"},
45+
[]string{"task", "mesos_slave", "framework_id"},
4646
)
4747
memLimitVal = prometheus.NewGaugeVec(
4848
prometheus.GaugeOpts{
4949
Namespace: "mesos_task",
50-
Name: "mem_limit_bytes",
50+
Name: "memory_limit_bytes",
5151
Help: "Task memory limit in bytes.",
5252
},
53-
[]string{"service", "mesos_slave", "framework_id"},
53+
[]string{"task", "mesos_slave", "framework_id"},
5454
)
5555
memRssVal = prometheus.NewGaugeVec(
5656
prometheus.GaugeOpts{
5757
Namespace: "mesos_task",
58-
Name: "mem_rss_bytes",
58+
Name: "memory_rss_bytes",
5959
Help: "Task memory RSS usage in bytes.",
6060
},
61-
[]string{"service", "mesos_slave", "framework_id"},
61+
[]string{"task", "mesos_slave", "framework_id"},
6262
)
6363
)
6464

0 commit comments

Comments
 (0)