Skip to content

Multi-value variable #125

@muhammedbasilek

Description

@muhammedbasilek

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"]}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions