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

Add Carbon receiver #109

Merged
merged 3 commits into from
Jan 31, 2020
Merged

Conversation

pjanotti
Copy link
Contributor

Add a receiver supporting the Carbon plaintext protocol over TCP or UDP.
This also sets the stage to other more complex parsers that can make
various transformations over metrics sent to the endpoints.

There is part of the code to handle different "parsers", for now there is just the "plaintext" one, others will come in later PRs together with a README.md to describe the difference between them.

receiver/carbonreceiver/factory.go Outdated Show resolved Hide resolved
receiver/carbonreceiver/factory.go Outdated Show resolved Hide resolved
receiver/carbonreceiver/factory.go Outdated Show resolved Hide resolved
receiver/carbonreceiver/factory.go Outdated Show resolved Hide resolved
receiver/carbonreceiver/protocol/config.go Outdated Show resolved Hide resolved
receiver/carbonreceiver/reporter.go Show resolved Hide resolved
@tigrannajaryan
Copy link
Member

Did one pass. It is pretty big, so unfortunately not a very thorough review.

@owais
Copy link
Contributor

owais commented Jan 28, 2020

I'd like to propose we start adding IP extraction feature to all new receivers. I can go add it to all existing ones and also update the contributing new components document.

Example of what needs to be done: https://github.com/open-telemetry/opentelemetry-collector/blob/master/receiver/zipkinreceiver/trace_receiver.go#L292-L295

@pjanotti
Copy link
Contributor Author

@owais regarding

I'd like to propose we start adding IP extraction feature to all new receivers. I can go add it to all existing ones and also update the contributing new components document.

Example of what needs to be done: https://github.com/open-telemetry/opentelemetry-collector/blob/master/receiver/zipkinreceiver/trace_receiver.go#L292-L295

I think that the best way to go about this is to pass a Client via OnDataReceived to the Reporter interface that I intend to move to core. This way it will be added to the context of all receivers following the usage of the reporter. From that point on all receivers using the reporter (correctly) will propagate the context with the client info.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM

Paulo Janotti and others added 3 commits January 31, 2020 07:22
Add a receiver supporting the Carbon plaintext protocol over TCP or UDP.
This also sets the stage to other more complex parsers that can make
various transformations over metrics sent to the endpoints.
@pjanotti pjanotti merged commit b64ac15 into open-telemetry:master Jan 31, 2020
@pjanotti pjanotti deleted the add-carbonreceiver branch January 31, 2020 15:44
@tigrannajaryan
Copy link
Member

@pjanotti the build failed after merging. Please check, I think we need higher resource limits for tests.

mxiamxia referenced this pull request in mxiamxia/opentelemetry-collector-contrib Jul 22, 2020
codeboten pushed a commit that referenced this pull request Nov 23, 2022
These changes follow up the "Fix and improve tests for Python != 3.7" PR.

The multi_line_output was already set to 3 in the
"Add initial black formatting" PR, so after rebasing to master
this commit contains only comment that describes a magic number
from the isort configuration file.

Corresponding PR:

 - open-telemetry/opentelemetry-python#109

Related discussions:

 - open-telemetry/opentelemetry-python#95 (comment)

 - open-telemetry/opentelemetry-python#95 (comment)
atshaw43 pushed a commit to atshaw43/opentelemetry-collector-contrib that referenced this pull request Oct 11, 2023
open-telemetry#109)

* move container_status_ metrics to pod_container_ so we can pick up short lived container states

* update README

* update README

* minor refactor so units work
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