Grafana-zabbix: Adding more functionality to IT Services feature (e.g. regex support)

Created on 26 Jun 2017  路  12Comments  路  Source: alexanderzobnin/grafana-zabbix

I'm submitting a ...

  • [ ] Bug report
  • [X] Feature requestd
  • [ ] Question / Support request

We are using Zabbix as our datasource and one of the things we need to present in our dashboard is the availability of multiple servers. We are using a trigger in Zabbix to monitor server availability, and so the SLA of each machine is automatically calculated in Zabbix as the percentage of a time period that the server was online. All the machines have been added to Zabbix' IT Services feature. So by visiting Zabbix' IT Services page we can see each added machine's OK time, PROBLEM time, and SLA, etc..

We want to show the availability (i.e. SLA) data of all servers on a graph of some sort in Grafana. For example, below is a memory utilization graph (using Zabbix metrics). We want something similar for SLA, that is, a line for each server all on 1 graph. That way, when a user selects a server under the graph only that server's line is displayed.
image

However, in Grafana, when I select Zabbix as my datasource and select IT Services as the query mode, I cannot select multiple servers using a regex such as /.*/ (like I can in the Metrics query mode). Therefore, I'd have to manually duplicate and add each server manually, as shown below.
image

If you look at the graph below (a memory utilization graph using metrics as the query mode) the machines have their own line on the graph, and all these machines were selected using a regex. We want to be able to do the same thing for IT Services. That way, if a server is added in Zabbix (under IT Services), the Grafana dashboard will automatically update when refreshed since the regex will capture the newly added servers.
image

Can you please add this? Otherwise, can you suggest me a technique for what I want to achieve? If you need any further information, please ask, we really really need an efficient method to present availability data for our servers, and Grafana is an excellent product we want to stick with.

Thank you!

datasource feature request

Most helpful comment

@ascott58 Implemented, will be in 3.6 release, probably this week.

All 12 comments

+1

It would be great if you add functions too, exemple: able to turn a single stat hour format to receive a division function, like 4.43 hours, fuction of *.xxx/60 to turn to time format instead of decimal format

is this included at 3.5 update? i updated but don't see that feature

Sorry, but no, I should move it to next release.

Hi, please let us know when there is a new release for us to download with this feature included. Thank you very much :D

@ascott58 Implemented, will be in 3.6 release, probably this week.

Nice!!! TY U a lot

still the same here =/ v3.6.1

@daianmartinho Look at this screenshot. Or maybe you mean something different?

screenshot from 2017-07-27 08 57 18

singlestat panel still dropdown query.

[EDIT]
i don't know what happened, but it is working now! maybe cache..
thank you !! great work

capturar

@ascott58 is this implementation solves your issue? @daianmartinho what the expected result? Please, describe your case in details.

@alexanderzobnin my issue has been solved, thank you for the updated release :)

Was this page helpful?
0 / 5 - 0 ratings