Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vodotsenko opened this issue Dec 22, 2022 · 16 comments
Closed

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

vodotsenko opened this issue Dec 22, 2022 · 16 comments

Comments

@vodotsenko
Copy link

vodotsenko commented Dec 22, 2022

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
Copy link
Owner

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
Copy link
Author

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

Screenshot_20221226_164816

@knightss27
Copy link
Owner

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

@vodotsenko
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

vodotsenko commented Dec 27, 2022

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
Copy link
Owner

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
Copy link
Author

  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
Copy link

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@knightss27 knightss27 pinned this issue Jan 27, 2023
@knightss27 knightss27 changed the title Same problem: I am unable to select one of my data queries. Unable to select more than one data query with Zabbix Jan 27, 2023
@bingsiL
Copy link

bingsiL commented Sep 8, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants