Skip to content

Query variables keep insisting that collection name is empty #51

@dhermangh

Description

@dhermangh

Hi!
Our database (around 1M) of entries contain MAC information about devices. We would like to have a variable to control what device statistics are being displayed on a plot.
Variables in dashboard are insisting that collection field is empty:

Image

Pressing Enter, changing form focus does not help at all.
Grafana shows this error upon clicking the query button:

grafana-1  | logger=plugin.haohanyang-mongodb-datasource t=2025-04-02T11:55:01.689064288Z level=error msg="Partial data response error" pluginID=haohanyang-mongodb-datasource refID=A statusSource= dsName=haohanyang-mongodb-datasource error="Collection field is required" uname=admin dsUID=aehot0nxgzvuoa endpoint=queryData status=400
grafana-1  | logger=plugin.haohanyang-mongodb-datasource t=2025-04-02T11:55:01.689256454Z level=error msg="Plugin Request Completed" dsName=haohanyang-mongodb-datasource uname=admin dsUID=aehot0nxgzvuoa duration=173.763µs endpoint=queryData pluginID=haohanyang-mongodb-datasource status=error statusSource=plugin
grafana-1  | logger=context userId=1 orgId=1 uname=admin t=2025-04-02T11:55:01.689534048Z level=info msg="Request Completed" method=POST path=/api/ds/query status=400 remote_addr=172.18.0.1 time_ms=4 duration=4.150353ms size=107 referer="http://localhost:3000/d/dehozaj26yigwc/aps?editIndex=0&editview=variables&from=now-6h&orgId=1&timezone=browser&to=now&var-mac=&var-query0=" handler=/api/ds/query status_source=downstream

Collection form clearly is not empty.

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