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

k8sclusterreceiver: Standardize metric names #1119

Merged

Conversation

asuresh4
Copy link
Member

Description:

  • Replace "/" with "." in metric names
  • daemon_set -> daemonset, stateful_set -> statefulset, replica_set -> replicaset to match conventions
  • k8s/container/<resource_type>/<request | limit> -> k8s.container.<resource_type>_<request | limit>

Testing: Updated tests

Documentation: Updated references in README.

- Replace "/" with "." in metric names
- daemon_set -> daemonset, stateful_set -> statefulset, replica_set -> replicaset
@asuresh4 asuresh4 requested a review from a team September 24, 2020 19:14
@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #1119 into master will increase coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1119      +/-   ##
==========================================
+ Coverage   88.94%   89.10%   +0.16%     
==========================================
  Files         258      258              
  Lines       12330    12330              
==========================================
+ Hits        10967    10987      +20     
+ Misses       1011      990      -21     
- Partials      352      353       +1     
Flag Coverage Δ
#integration 75.52% <ø> (ø)
#unit 88.16% <100.00%> (+0.16%) ⬆️

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

Impacted Files Coverage Δ
receiver/k8sclusterreceiver/collection/cronjobs.go 100.00% <ø> (ø)
...ceiver/k8sclusterreceiver/collection/daemonsets.go 94.28% <ø> (ø)
receiver/k8sclusterreceiver/collection/hpa.go 94.28% <ø> (ø)
receiver/k8sclusterreceiver/collection/jobs.go 97.43% <ø> (ø)
receiver/k8sclusterreceiver/collection/pods.go 94.11% <ø> (ø)
...er/k8sclusterreceiver/collection/resourcequotas.go 100.00% <ø> (ø)
...iver/k8sclusterreceiver/collection/statefulsets.go 94.87% <ø> (ø)
...ceiver/k8sclusterreceiver/collection/containers.go 89.85% <100.00%> (ø)
...ceiver/k8sclusterreceiver/collection/namespaces.go 100.00% <100.00%> (ø)
receiver/k8sclusterreceiver/collection/nodes.go 76.92% <100.00%> (ø)
... and 5 more

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 4cea0af...41025a9. Read the comment docs.

@dmitryax
Copy link
Member

Thanks a lot for taking care of this!

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.

could you update all the translations in signalfx exporter? here or as a PR going alongside

receiver/k8sclusterreceiver/collection/resourcequotas.go Outdated Show resolved Hide resolved
@dmitryax dmitryax self-assigned this Sep 24, 2020
@asuresh4
Copy link
Member Author

could you update all the translations in signalfx exporter? here or as a PR going alongside

Will open a separate PR for the exporter.

tigrannajaryan pushed a commit that referenced this pull request Sep 28, 2020
Update translations for `k8s_cluster` receiver metrics. Follow-up to #1119.
@tigrannajaryan tigrannajaryan merged commit cd5dacb into open-telemetry:master Sep 28, 2020
@asuresh4 asuresh4 deleted the k8sclusterreceiver-metric-names branch September 28, 2020 17:47
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
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