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

Base64 variable format? #935

Open
pko-trackunit opened this issue Oct 12, 2024 · 0 comments
Open

Base64 variable format? #935

pko-trackunit opened this issue Oct 12, 2024 · 0 comments

Comments

@pko-trackunit
Copy link

Would it be possible to add base64 formatting of variables?

I have a variable in my Grafana dashboard that can be anything. I want to use that variable to construct URL like:

https://example.org?param1={"key1": "some language here with \"${grafanaValue}\" and more text"}

To do it correctly I first need to escape all double quotes for $language to work, then there's JSON string that needs to escaped again. Finally I should also do query string encoding, but fortunately web browsers deal with that, so it's not that important.

My plan / hope is to be able to do:

https://example.org?param1={"key1": "some language here with base64_decode(\"${grafanaValue:base64encode}\") and more text"}
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