Checkmk / grafana-checkmk-datasource

CheckMK data source for Grafana
Apache License 2.0
80 stars 14 forks source link

Make the summary field available to display #200

Open fe-berg opened 1 year ago

fe-berg commented 1 year ago

Hello everyone,

i am using Grafana as my main display and use CheckMK as a datasource along others.

CheckMK is supposed to fetch the HP ILO data for me, using a CheckMK Plugin. The IPMI Sensor fetches the data and is able to create a summary as well as display the average temperature as a graph image

using grafa-checkmk-datasource, i am able to look at this sensor but can only display the temperature graph and nothing else. In the summary you can see the ammount of Sensor that are summed up into one as well as the ammount of sensors that are in a certain state (OK, Crit, skipped)

Is it possible to read that data? i can imagine a return integer for each state (1=OK, 2=Crit 0=skipped, etc) and then use value mapping to create an overview of the current sensors and their states

godspeed-you commented 1 year ago

Hi @fe-berg,

thanks for sharing your insights regarding our plugin! The original design of our plugin is indeed focusing on the metric in Checkmk. We are also interested in use cases and possibilities using states or even the agent output. Currently, we are finalizing another highly requested feature and this is our top prio right now.

Maybe -- no promises here -- we will take a closer look into the state thing. The main problem is here the concrete use case and a intuitive integration into the plugin. Like for the variables, we need to better understand, how this could be useful for many use cases and how we can prevent confusion during the usage. In the past, we declined this request. I see more chances in the second half of this year. Again: No promises.

With the output in the summary it's more complicated, as these are no structured data. The amount of uncertainties in this part are the main reason, why we have to decline that definitely for now. E.g. it's absolutely unclear, how this could be implemented in a clear, useful and performant way.

congto commented 5 months ago

@godspeed-you We are using grafana plugin with datasource checkmk.

Displaying numeric metrics is very good, however there are some plugins from checkmk that do not have numeric data, for example getting the hostname of the vm or the version of the OS.

If you can support displaying the "Summary" or "Detail" section of the service in checkmk on grafana, it would be great.

Thanks

godspeed-you commented 4 months ago

Hi @congto,

thanks for sharing these insights. I think, I understand the use case better. As soon as we reduced our backlog, we will consider your request and take a look on the feasibility.

tobilektri commented 1 week ago

@godspeed-you Hi, any news on that topic? It would be also very helpful for us to get the service state. We have a http-check from which we can get Response size, Response time, Time to fetch HTTP headers, Time to fetch page content in Grafana. But if the server is down (HTTP Timeout) the four metrics are still on the old value and not refreshed. so we have no possibility to check if the service is reachable or not - we can only check if it is slow.

Edit: We are now temporarily using Infinity to make API calls to the checkmk REST API to read out the current status. unnecessarily complicated, but at least it works.