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 brokers metrics and metrics metadata to Kafkametrics #2656

Conversation

dshomoye
Copy link
Contributor

@dshomoye dshomoye commented Mar 11, 2021

Description:
This adds the metric code for the brokers scraper. Currently only one metric is reported: the number of brokers.
Follow up to #2620
The complete metadata.yaml and generated_metrics.go file for metrics of consumer groups and topics/partitions, that will be added in subsequent PRs is also included as well as the

Testing: unit tests

@dshomoye dshomoye requested a review from a team March 11, 2021 19:35
@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #2656 (83efe56) into main (49c6574) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2656      +/-   ##
==========================================
+ Coverage   91.40%   91.42%   +0.02%     
==========================================
  Files         435      435              
  Lines       21620    21628       +8     
==========================================
+ Hits        19762    19774      +12     
+ Misses       1391     1387       -4     
  Partials      467      467              
Flag Coverage Δ
integration 69.20% <ø> (ø)
unit 90.33% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
receiver/kafkametricsreceiver/broker_scraper.go 100.00% <100.00%> (ø)
receiver/kafkametricsreceiver/receiver.go 100.00% <100.00%> (ø)
...ceiver/kafkametricsreceiver/scraper_test_helper.go 100.00% <100.00%> (ø)
receiver/carbonreceiver/transport/tcp_server.go 67.00% <0.00%> (+1.00%) ⬆️
receiver/prometheusexecreceiver/receiver.go 88.33% <0.00%> (+2.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49c6574...83efe56. Read the comment docs.

@jrcamp jrcamp assigned jrcamp and unassigned owais Mar 16, 2021
Copy link
Contributor

@jrcamp jrcamp 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 just a few minor things

@dshomoye
Copy link
Contributor Author

Will this be merged regardless of the failing test? - the cause of the failure doesn't seem to be related to any of the changes in this PR.

@bogdandrutu bogdandrutu merged commit 19d2256 into open-telemetry:main Mar 19, 2021
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
* add brokers metrics and metrics metadata

* update metric names

* fix metric units

* update offset unit

* remove nocover file

* empty commit
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.

4 participants