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

Partial text with filtering/templating #605

Closed
ehammerv opened this issue Jul 18, 2014 · 3 comments
Closed

Partial text with filtering/templating #605

ehammerv opened this issue Jul 18, 2014 · 3 comments

Comments

@ehammerv
Copy link

What i would like to do is have some text along with a filter in the graphite target
Example targets:
apps.foo.bar.HEAD.data.continuous_HEAD.summary
apps.foo.bar.B1.data.continuous_B1.summary
Then inside the template have a [[Branch]] filter with values from apps.foo.bar.*
Giving us the data values [HEAD,B1] to select
Then create a target value of:
apps.foo.bar.[[Branch]].data.continuous_[[Branch]].summary
allowing for a text and a filter on the same level, current system doesn't support this.

@torkelo
Copy link
Member

torkelo commented Jul 19, 2014

You are right, it does not currently support this scenario :(

You might be able to get it to work if you disable the query editor (click the pen icon) and type in the graphite expression using the text box. It might confuse the graphite expression parser, but should still work.

@asyd
Copy link

asyd commented Jul 30, 2014

+1

I also need this feature to select item only when sub metric exists (like servers.*.jmx.*, where I want to catch the list of servers where they are imx metrics)

@torkelo
Copy link
Member

torkelo commented Aug 10, 2014

@ehammerv what you specify should be possible. Just switch to graphite text box editor and enter
apps.foo.bar.[[Branch]].data.continuous_[[Branch]].summary

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

4 participants