sni / grafana-thruk-datasource

Use Thruks Rest API within Grafana
MIT License
13 stars 2 forks source link

Display Host Comments #8

Closed Tots69 closed 1 year ago

Tots69 commented 2 years ago

Hello,

I'm looking for a way to display Host Comments or Host Downtime Comments. I only find the way to display the Host comment ID. Is it possible to show those informations ?

Regards,

sni commented 2 years ago

Depends on how you want to show it. If it's for a specific host, you have to query the downtimes or comments table. Right now it is not possible to join that information in a host query.

Tots69 commented 2 years ago

I would like to have a grafana table with Hostname, host state, plugin output, host comments or host downtime if exists. I try a lot of things found but I don't get the result I'm looking for. Do you think it's possible to have this render ?

sni commented 1 year ago

There is not much this datasource can do about it, but i now added 2 columns comments_info and downtimes_info to /hosts and /services so they can be used here as well: https://github.com/sni/Thruk/commit/a1200e5986b2ac2a01567b7f79929f7a9ae8ef98