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

[receiver/expvarreceiver] Overall structure for new expvarreceiver #9747

Merged
merged 15 commits into from
May 12, 2022

Conversation

jamesmoessis
Copy link
Contributor

@jamesmoessis jamesmoessis commented May 5, 2022

Description: This PR is the initial Config and Factory implementations for the expvar receiver. There is no receiver implementation yet, it is just a skeleton and basic test for loading config from yaml.

The expvarreceiver intends to collect memstats from Golang applications. The configuration options are collection interval, http client config, and enabling/disabling metrics by name.

Link to tracking Issue: #9592

Testing: Basic tests for config validation. More rigorous unit tests will be added when there is more implementation to test.

Documentation: The README details configuration options and defaults. It doesn't yet go into details on the metrics section because the list of metrics names from memstats still needs to be defined by the receiver.

@jamesmoessis jamesmoessis requested a review from a team as a code owner May 5, 2022 06:39
@jamesmoessis jamesmoessis requested a review from dashpole May 5, 2022 06:39

## Configuration

### Default
Copy link
Contributor

Choose a reason for hiding this comment

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

Once we know the list of default metrics we are going to export, we should add them here in that PR with an example of how to disable them if you're not interested in gc_pause.time for example.

@jamesmoessis
Copy link
Contributor Author

Hi @dmitryax would you be able to take a look at this PR? 😃

receiver/expvarreceiver/Makefile Outdated Show resolved Hide resolved
receiver/expvarreceiver/README.md Outdated Show resolved Hide resolved
receiver/expvarreceiver/config.go Outdated Show resolved Hide resolved
@jamesmoessis
Copy link
Contributor Author

RE the changelog checks - I will update it once this PR is approved and ready to be merged. It's the kind of thing that gets a conflict every time I rebase on master because of other things being added to the changelog constantly.

Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

LGTM, pending a changelog entry

@jamesmoessis
Copy link
Contributor Author

Thanks for the review @djaglowski! - changelog is updated

@djaglowski djaglowski merged commit dc7c1db into open-telemetry:main May 12, 2022
@jamesmoessis jamesmoessis deleted the expvarrecevier branch May 16, 2022 06:14
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.

None yet

4 participants