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(ux)!: Use external tagging for metrics serialization #2231

Merged
5 commits merged into from
Apr 7, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 5, 2020

This is a small change that closes #2021.

One reason to have it is that it would make metrics representation in stdout sink consistent with it in Lua transform. However, it might break compatibility for those who rely on this serialization.

Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
@ghost ghost requested review from lukesteensen and binarylogic April 5, 2020 18:38
@Hoverbear Hoverbear assigned ghost Apr 6, 2020
@Hoverbear Hoverbear added type: enhancement A value-adding code change that enhances its existing functionality. event type: metric labels Apr 6, 2020
Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
@ghost
Copy link
Author

ghost commented Apr 7, 2020

I've updated the Schema section in the metrics data model description, so now all kinds of metrics are documented as top-level fields. The fact that only one object of each kind can be present in a metric now mentioned in the beginning of the section.

Not sure is it possible or necessary to separate "one of" fields (aggregated_histogram, aggregated_summary, counter, distribution, gauge, set) from the rest of the fields (name, timestamp, kind, tags).

@ghost ghost requested a review from binarylogic April 7, 2020 19:53
Copy link
Contributor

@binarylogic binarylogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@binarylogic
Copy link
Contributor

Not sure is it possible or necessary to separate "one of" fields (aggregated_histogram, aggregated_summary, counter, distribution, gauge, set) from the rest of the fields (name, timestamp, kind, tags).

I don't think so. Looks good to me.

@ghost ghost merged commit febbdfb into master Apr 7, 2020
@binarylogic binarylogic deleted the metric-externally-tagged branch April 24, 2020 20:38
@binarylogic binarylogic added domain: data model Anything related to Vector's internal data model domain: metrics Anything related to Vector's metrics events and removed event type: metric labels Aug 6, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: data model Anything related to Vector's internal data model domain: metrics Anything related to Vector's metrics events type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use external tagging for metrics serialization
4 participants