knightss27 / grafana-network-weathermap

A fully featured and customizable network weathermap plugin for Grafana (9.0+).
https://grafana.com/grafana/plugins/knightss27-weathermap-panel/
Apache License 2.0
132 stars 6 forks source link

Unable to select more than one data query with Zabbix #38

Closed vodotsenko closed 1 year ago

vodotsenko commented 1 year ago

Your recommendation: "See the note on: Adding Data."

There is the following note: "PLEASE NOTE: Queries with the exact same labels will be considered as such. If you have multiple queries and are unable to select the one that you want, double check to make sure it is labeled uniquely."

Please explain to me where can I check the uniqueness of an query. There are no uniqueness marks on the panel. I only see the following options: duplicate, hide, delete.

File: Screenshot_20221222_124208

knightss27 commented 1 year ago

I'm not entirely sure the best place to check this, though I wonder if in the "options" dropdown for the query (below "Functions") are you able to add something to distinguish the two?

vodotsenko commented 1 year ago

After enabling these options, nothing happens. Where can I enable query uniqueness?

Screenshot_20221226_164816

knightss27 commented 1 year ago

Maybe this is a different version of #7? Can you try disabling "data alignment" in the options of the Zabbix data source?

vodotsenko commented 1 year ago

Disabling "data alignment" does nothing. (screenshot 1 and 2). However, if I remove one of the queries from visibility, then I can select "Traffic Out" for "Z Side Query". Of course "Traffic In" doesn't work anymore (screenshot 3)

screenshot 1 1Screenshot_20221226_164816

screenshot 2 2Screenshot_20221227_121019

screenshot 3 3Screenshot_20221227_121111

knightss27 commented 1 year ago

This is weird. Can you make sure both queries are enabled and then at the top (possible outside of edit mode) click on the name of your panel and select "Inspect" > "Panel JSON" and then change the dropdown at the top to "Panel Data" and attach the file to a response? Feel free to remove some of the pure data values and/or change names if you don't want to share that info.

vodotsenko commented 1 year ago

I'm attaching the requested file (Panel_data_Inspect_NSK-Core.txt).

You can see the current configuration in the screenshot.

4Screenshot_20221227_131247

Panel_data_Inspect_NSK-Core.txt

knightss27 commented 1 year ago

Can you go to the actual Zabbix settings, so "Configuration" > "Datasources" on the left hand side of Grafana, and try disabling data alignment there (not just on the individual queries)? It looks to me like this might still be causing a problem.

vodotsenko commented 1 year ago

I tried turning off data alignment in the global settings, but after creating a new Weathermap, nothing has changed. I have also played with the query settings separately, but I can't select "Traffic Out" from the "x Side Query" dropdown. 5Screenshot_20221227_132812 6Screenshot_20221227_132928 7Screenshot_20221227_133004

knightss27 commented 1 year ago

Hmm. Ok a final two thoughts to try:

  1. Can you write these queries a different way? i.e. https://alexanderzobnin.github.io/grafana-zabbix/guides/gettingstarted/#multiple-items-on-one-graph (so both options are originating from Query A)? I don't use Zabbix myself so I'm not sure if this works for your situation, but it looks like you are able to get multiple outputs from a singular Grafana query field.
  2. What does the "item tag" field do? Is it able to change the names of the items?
vodotsenko commented 1 year ago
  1. Looks like it works here. I will test other visualization methods later. 8Screenshot_20221227_140356

  2. This is just a tag (for convenience). I can't change the names this way. 9Screenshot_20221227_140537

cameronw1996 commented 1 year ago

I had this same issue. I had to add 3 or more queries of different devices and the drop down list then started to work. If I only add 2 queries I could only choose one from the drop down. I wondered if it might be bug?

vodotsenko commented 1 year ago

Now I have added 10 requests for different network devices, but nothing has changed. The dropdown list doesn't work properly, I mean I can only select one (first added) query. @cameronw1996, perhaps you have changed something else?

knightss27 commented 1 year ago

In the "Item" field for the first query (Query A), are you able to do Regex like "/.*/" or equivalent? Instead of having two separate queries? This is what I was trying to say above but I wasn't sure how to put it. I can see from this other issue with a Zabbix user that they can select multiple "items" by using regex in the "Item" field, so I wonder if this might fix your issue?

vodotsenko commented 1 year ago

Finally! The problem has been fixed. Can you specify this singularity in the documentation for Zabbix database users?

Thanks so much for your help. This project is great!

knightss27 commented 1 year ago

Great! Yes, I am going to work on updating the documentation page as a whole and I will add this issue.

bingsiL commented 11 months ago

Great! Yes, I am going to work on updating the documentation page as a whole and I will add this issue.

Sorry, I didn't understand how to solve the author's problem, can you give a detailed explanation?