-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
experimental_metricsgeneration divide calculation is not correct #33179
Comments
Pinging code owners for processor/metricsgeneration: @Aneurysm9. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
No response
What happened?
Description
I using experimental_metricsgeneration to get the utilization if volume by using divide function.
<title></title> <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px '.AppleSystemUIFont'} table.t1 {border-collapse: collapse} td.td1 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; padding: 1.0px 5.0px 1.0px 5.0px} </style>Configure:
experimental_metricsgeneration:
rules:
- name: pvc.utilization
type: calculate
metric1: kubelet_volume_stats_used_bytes
metric2: kubelet_volume_stats_capacity_bytes
operation: divide
- name: pvc.utilization.percentage
type: calculate
metric1: kubelet_volume_stats_used_bytes
metric2: kubelet_volume_stats_capacity_bytes
operation: percent
Below are the metrics:
Steps to Reproduce
Expected Result
pvc.utilization = kubelet_volume_stats_used_bytes/kubelet_volume_stats_capacity_bytes=427286528/33501757440=0.01275
Actual Result
pvc.utilization = 0.10311770985726147
Collector version
0.38.1
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: