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

move _origin to meta tag #10

Merged
merged 2 commits into from
Apr 12, 2019
Merged

move _origin to meta tag #10

merged 2 commits into from
Apr 12, 2019

Conversation

bin3377
Copy link

@bin3377 bin3377 commented Apr 11, 2019

Move _orgin=kubernetes as a meta tag so we can workaround the 2 or 3 spaces problem for now.
We may move to prometheus format later for resolving the whitespace in tag
@samjsong @rvmiller89 @lei-sumo

@@ -72,7 +72,7 @@ def to_carbon_line(record)
metric = @metric_accessor.call(record).gsub(/\s/, @space_as)
timestamp = @timestamp_accessor.call(record)
value = @value_accessor.call(record)
"metric=#{metric} #{to_tags(record)} #{value} #{timestamp}"
"metric=#{metric} #{to_tags(record)} #{ORIGIN_KEY}=#{ORIGIN_VALUE} #{value} #{timestamp}"
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, although I think we determined we could also just change this to

metric=#{metric} #{to_tags(record)}  #{value} #{timestamp}

(2 spaces)

Copy link
Author

Choose a reason for hiding this comment

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

yes. it should also works.
We may change it to Prometheus format in near future, so just keep it for now to unblock E2E

@bin3377 bin3377 merged commit adc8e0e into master Apr 12, 2019
@bin3377 bin3377 deleted the byi-move-origin-to-meta branch April 12, 2019 00:13
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
Re-create collectors for the search log2es app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants