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

Add query variable support #17

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Add query variable support #17

merged 6 commits into from
Oct 22, 2024

Conversation

haohanyang
Copy link
Owner

@haohanyang haohanyang commented Oct 16, 2024

Fixing #16

  1. Added Query Variable Support. Each field name is a variable that has array value. Only string or number fields are supported. Format rules: https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/

The variable text has format <fieldname>:<value>
If a field has 1 element, then the element value is the variable value. Otherwise the variable value is the array

  1. Changed default query to
[
  {
    "$limit": 10
  }
]
image image

@haohanyang haohanyang mentioned this pull request Oct 17, 2024
@haohanyang haohanyang merged commit 15c756d into master Oct 22, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

1 participant