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

[enhancement] plugin should deal with nested fields better #13

Closed
blysik opened this issue Aug 5, 2015 · 5 comments
Closed

[enhancement] plugin should deal with nested fields better #13

blysik opened this issue Aug 5, 2015 · 5 comments
Assignees

Comments

@blysik
Copy link

blysik commented Aug 5, 2015

If I have a nested field like:

metrics => {
  requests => 1020
  foo => 984894
  bar => 323
}

Graphite output should walk the nested field, and DTRT in sending it to graphite. In my example, it would do:

metrics.request 1020 timestamp
metrics.foo 984894 timestamp
metrics.bar 323 timestamp

@andrewvc
Copy link
Contributor

andrewvc commented Aug 5, 2015

@blysik is it the case that your expectation is using the graphite output like so:

graphite {
  fields_are_metrics => ['metrics'] 
}

should cause it to perform the transformation you're thinking of?

@andrewvc andrewvc self-assigned this Aug 5, 2015
@blysik
Copy link
Author

blysik commented Aug 5, 2015

Yes! That's exactly my expectation. (Or some regex similar to that.)

@andrewvc
Copy link
Contributor

andrewvc commented Aug 5, 2015

@blysik great, we'll get that released in the next day or two. It'll work with either metrics or fields_are_metrics, your choice!

@blysik
Copy link
Author

blysik commented Aug 5, 2015

Awesome! Look forward to trying it out.

@andrewvc
Copy link
Contributor

andrewvc commented Aug 6, 2015

Released in version 1.0.1 . Enjoy @blysik !

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

2 participants