Prometheus special agent rule: Missing performance data

Hi There,

we use CheckMKs Prometheus special agent to collect metrics. A simple query like “prometheus_tsdb_head_series_created_total{job=“prometheus”}” doesn’t show any perf-o-meter data, like bars or charts. We only see the metric. What is missing?

Thanks in advance!

What do you mean by metric? perf-o-meter’s are not performance data.

if the above PromQL creates more than one entry/row (for example metric with two different labels) then this will not work. Only single metric is supported.

If I remember correctly, checkmk only yields the metric if you tell the special agent, what kind of metric it will return:

we found this complicated and simply changed a tiny bit in the prometheus_custom plugin

no guarantee, this has only been used at one 2.2.0 installation :slight_smile:
prometheus_perfdata-1.1.0.mkp (2.2 KB)

Thanks guys!

@Anders: thanks, I noticed that. I meant (single) metrics, where CheckMK automatically visualizes them into graphs.

@gstolz: Ok, so I need to find a (predefined) metric from the list, which “translates” my custom metric correctly into graphs with labels, units, etc? Thats very complicated, indeed. Can I find your mkp package somewhere on official places? Tried https://checkmk.com/integrations so far.

Thanks again, Best Markus

no official places yet, just my post above where I attached it. But for security reasons you can just unzip the .mkp and compare the file to the prometheus_custom from your checkmk instance. If the version matches, you’ll see that the diff is just 2 or 3 lines :slight_smile:

Thanks, I will check that! Best, Markus