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

Commit

Permalink
Change metric definitions a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusv committed Mar 19, 2015
1 parent 4cc889c commit f3c0cee
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
)
)

Expand Down

0 comments on commit f3c0cee

Please sign in to comment.