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

Support many fields under one measurement? #71

Open
mnp opened this issue Aug 22, 2017 · 1 comment
Open

Support many fields under one measurement? #71

mnp opened this issue Aug 22, 2017 · 1 comment

Comments

@mnp
Copy link
Contributor

mnp commented Aug 22, 2017

This reporter seems oriented around many measurements, each on its own line in the protocol, with a small number of related fields under each, even if the tags and timestamps are the same.

com.foo.widget host=bleh  count=2, m15_rate=0.19, m1_rate=0.17, m5_rate=0.19 1503403333000000000
com.foo.thingie host=bleh  count=7, m15_rate=0.22, m1_rate=0.11 m5_rate=0.11 1503403333000000000

Our style involves one high level measurement (one per app) and then a few dozen fields under each measurement. We'd like to group measurements with the same tags and time into one measurement in the line protocol.

foo host=bleh widget.count=2 widget.m15_rate=0.19, widget.m1_rate=0.17, widget.m5_rate=0.19,thingie.count=7, thingie.m15_rate=0.22, thingie.m1_rate=0.11,thingie.m5_rate=0.11  1503403333000000000

I'm working on a field grouper which I'll contribute, but first wonder if I'm missing something.

@nzroller
Copy link
Contributor

nzroller commented Aug 25, 2017

I think you're understanding is correct -- fields and timestamps are generally the same. We group on type of measurement though, e.g. any restful resource method is grouped in the measurement resources but the metricName tag will differ for each line.

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

3 participants