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

panel variable interpolation and datasource query variables #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

itsnotdevin
Copy link

Added a few features that were helpful for me.

  • Search to query variable creation, eg. index=_introspection | stats count by host | fields host -> $host
  • Panel query variable interpolation, eg. index=_introspection host="$host"
  • Panel queries allow leading functions in addition to regular searching, eg. | inputlookup mylookup

Also, stops queries from executing on-change if the query text is under 4 characters in length to avoid accidental large queries, or if SID returns empty.

cheers.

Copy link

@shadowshot-x shadowshot-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this. LGTM! Thanks for the contribution @itsnotdevin 😄
@efcasado Can you help in merging this, its a good feature

@efcasado
Copy link
Owner

Sure thing! Give me a few days to catch up with things and I will get this merged. Sorry for being quiet for so long and thanks a lot for the contribution! 🙌

@serg1ortega
Copy link

Hello! How could I compile the plugin with this update? Thank you so much!

@farmboy-dev
Copy link

farmboy-dev commented Jun 28, 2024

@itsnotdevin I've tested it with Grafana 11.1. query worked, but query with Grafana variable didn't work.
update: Sorry it's working, I set the wrong syntax
@efcasado Is there any update?

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.

5 participants