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

Multi-value variable #125

Open
muhammedbasilek opened this issue Apr 19, 2022 · 1 comment
Open

Multi-value variable #125

muhammedbasilek opened this issue Apr 19, 2022 · 1 comment

Comments

@muhammedbasilek
Copy link

muhammedbasilek commented Apr 19, 2022

Hi,
I'm new to mongodb-grafana. I'm trying to create variable and I'm facing some issues. please anyone help me to sort it out

  1. Cannot create query variable, it not showing preview of values. my query is db.status_all.aggregate([ {"$group": { "_id": "$client"}}, {"$project": { "client": "$_id", "_id": 0 }} ] ). it will give all client values but in preview it not showing
  2. If i try to create custom variables it is working, but still multi select is not working, after enable multi select it will show only for one client value, it showing no data for the 'All' option and for more than one value option as well. I tried these ways both are not working a. {"$match":{"client":"$client"}} b. {"$match":{"client":{"$in":["$client"]}}}
@muhammedbasilek
Copy link
Author

Found the solution for multi-value variable
I used like this {"$match":{"client":{"$in":[[clients:json]]}}},
but for the first issue still I couldn't find the solution!!

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

1 participant