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

Variables: Adds substitution regex #5589

Closed
1 task done
jackmeagher opened this issue Jul 14, 2016 · 6 comments
Closed
1 task done

Variables: Adds substitution regex #5589

jackmeagher opened this issue Jul 14, 2016 · 6 comments

Comments

@jackmeagher
Copy link
Contributor

  • I'm submitting a ...
  • Feature request

Using Grafana v3.1.0, I would like to be able to do a substitution regex in a template, instead of just a match.

For example, if my glob matches the value "abcdef" I would like to use the regex "s/bcd/xyz/" and have the value transformed to "axyzef".

@jisaitua
Copy link

jisaitua commented Dec 7, 2016

+1 Very useful for transforming some cryptic/to_technical values (e.g: ["ofh","nofh"]) to values that some uneducated user can understand (e.g: ["Office Hours","Non Office Hours"])

@jogoussard
Copy link

+1 Very useful for mapping a variable obtained from one data source query (cloudwatch for ex) to query another data source (graphite)

@hugohaggmark hugohaggmark added this to Needs triage in Platform Backlog via automation Nov 10, 2020
@hugohaggmark hugohaggmark moved this from Needs triage to Feature requests in Platform Backlog Nov 10, 2020
@hugohaggmark
Copy link
Contributor

I think this would be a great addition.

@hugohaggmark hugohaggmark changed the title Substitution regex in templates Variables: Adds substitution regex Nov 10, 2020
@tigattack
Copy link

I'd also love to see this.

Copy link
Contributor

This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

Copy link
Contributor

This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants