mesos_exporter icon indicating copy to clipboard operation
mesos_exporter copied to clipboard

More convenient way of reporting used and total

Open bobrik opened this issue 8 years ago • 4 comments

Currently some metrics are reported like this:

# TYPE mesos_master_cpus gauge
mesos_master_cpus{type="free"} 1924.1
mesos_master_cpus{type="used"} 1579.9

and some like this:

mesos_slave_cpus{slave="slave(1)@1.2.3.4:5051"} 32
mesos_slave_cpus_used{slave="slave(1)@1.2.3.4:5051"} 2.4

I thin we should converge to the second model in a backward compatible fashion. WDYT?

bobrik avatar Mar 23 '16 10:03 bobrik

:+1: for aligning the reporting style. The first seems to be the most common style currently (used by e.g mesos_slave_mem also) but the 2nd feels a bit cleaner imho.

keis avatar Mar 23 '16 10:03 keis

AFAIK, sum and average over the label-dimensions of a metric should make sense. The second approach therefore seems to be the way to go.

Maybe @brian-brazil can enlighten us here :-)

StephanErb avatar Mar 23 '16 14:03 StephanErb

The 2nd way is preferred, as it's easier to work with.

brian-brazil avatar Mar 23 '16 15:03 brian-brazil

#8 is open for 2 weeks without attention, not sure if it's worth doing anything.

bobrik avatar Apr 06 '16 14:04 bobrik