Skip to content

kubeletstatsreceiver: Add metric_groups option #648

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

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

asuresh4
Copy link
Member

@asuresh4 asuresh4 commented Aug 5, 2020

Description: Add a notion of metric groups in the receiver. Currently supports container, pod and node groups. By default, metrics from all 3 groups will be collected. This can be overrode by setting the metric_group option. The idea is to extend the receiver to collect metrics volume group as well in the future.

Testing: Updated tests.

Documentation: Updated README.

@asuresh4 asuresh4 requested a review from a team August 5, 2020 01:30
@codecov
Copy link

codecov bot commented Aug 5, 2020

Codecov Report

Merging #648 into master will increase coverage by 0.05%.
The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #648      +/-   ##
==========================================
+ Coverage   86.31%   86.37%   +0.05%     
==========================================
  Files         196      197       +1     
  Lines       10754    10801      +47     
==========================================
+ Hits         9282     9329      +47     
  Misses       1136     1136              
  Partials      336      336              
Flag Coverage Δ
#integration 71.09% <ø> (ø)
#unit 86.20% <96.96%> (+0.06%) ⬆️

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

Impacted Files Coverage Δ
receiver/kubeletstatsreceiver/factory.go 96.15% <89.47%> (-3.85%) ⬇️
receiver/kubeletstatsreceiver/config.go 100.00% <100.00%> (ø)
...ceiver/kubeletstatsreceiver/kubelet/accumulator.go 100.00% <100.00%> (ø)
receiver/kubeletstatsreceiver/kubelet/metrics.go 100.00% <100.00%> (ø)
receiver/kubeletstatsreceiver/receiver.go 88.23% <100.00%> (+8.23%) ⬆️
receiver/kubeletstatsreceiver/runnable.go 100.00% <100.00%> (ø)
receiver/carbonreceiver/transport/tcp_server.go 67.61% <0.00%> (+1.90%) ⬆️

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 19d45a5...58a8f4a. Read the comment docs.

@asuresh4 asuresh4 marked this pull request as draft August 5, 2020 01:53
@asuresh4 asuresh4 force-pushed the kubeletstats-groups branch 2 times, most recently from d49395b to 34b4829 Compare August 5, 2020 03:26
@asuresh4 asuresh4 marked this pull request as ready for review August 5, 2020 03:35
@asuresh4
Copy link
Member Author

asuresh4 commented Aug 5, 2020

loadtest failure seems unrelated. Trying a rebase to re-trigger tests.

@asuresh4 asuresh4 force-pushed the kubeletstats-groups branch from 34b4829 to f9e8dd5 Compare August 5, 2020 14:38
Copy link
Member

@dmitryax dmitryax 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 to me

@asuresh4 asuresh4 force-pushed the kubeletstats-groups branch from f9e8dd5 to a0b7867 Compare August 5, 2020 18:46
@asuresh4
Copy link
Member Author

asuresh4 commented Aug 5, 2020

Rebasing again, to re-trigger tests.

Add a notion of metric groups in the receiver. Currently supports
`container`, `pod` and `node` groups. By default, metrics from all
groups will be collected.
@asuresh4 asuresh4 force-pushed the kubeletstats-groups branch from a0b7867 to 58a8f4a Compare August 6, 2020 16:45
@bogdandrutu bogdandrutu merged commit a1a3915 into open-telemetry:master Aug 6, 2020
@asuresh4 asuresh4 deleted the kubeletstats-groups branch August 6, 2020 17:06
dyladan referenced this pull request in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
Translation is mostly based on OTLP to OC translation defined in translator/metrics/otlp_to_oc.go
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* trace exporter: using type names for return values

* Update jaeger.go

Co-authored-by: Joshua MacDonald <[email protected]>
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