Metric graph and perf-o-meter difference

hi @ all,
maybe someone can help me with the following. I have this custom graph and it looks fine

but the perf-o-meter shows kB/s and not MB/s

image

my custom graph definition looks like this

metric_info[“average_throughput”] = {
“title” : _(“Average sync throughput of all archive jobs”),
“unit” : “bytes/s”,
“color” : “#90D4A9”,
“scale” : KB,
}
perfometer_info.append({
“type” : “linear”,
“scale” : KB,
“segments” : [ “average_throughput” ],
})

but it looks like the scale in the perfometer_info section is not working

the performance data looks like this “average_throughput=168919;;;;”

somebody has an idea?

PerfOMeter don’t support the scale modifier.
You can do a calculation for the label like it is done for the Linux memory PerfOMeter.
This calculation is only to display the correct value for the label.
Metric_info also don’t know the scale modifier.
This modifier should be defined inside the “check_metrics” and then it is also possible that all graphs and PerfOMeter are drawn correctly.

cool …
how do i do that? :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.