-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/metricsgeneration
Metrics Generation processor
Comments
gaussye
added
bug
Something isn't working
needs triage
New item requiring triage
labels
May 22, 2024
Pinging code owners for processor/metricsgeneration: @Aneurysm9. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This was referenced Jun 2, 2024
This was referenced Jun 10, 2024
This was referenced Jun 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/metricsgeneration
Metrics Generation processor
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: