-
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
metricsgenerationprocessor skips a rule if the second operand is 0 #29667
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thanks for filing @flyfire2002, and including references to the failing code. I was able to confirm your findings. This may have been done to protect against dividing by 0, or even creating new metrics that are just identical to existing, but I think the better functionality is to properly handle dividing by 0 (which is already done) and still create metrics even if they match existing values. @Aneurysm9 may be able to share if there's something else we're missing here though. One thing also to be aware of is this component is still in Development stability. so there may be more issues like this. |
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 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 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)
processor/metricsgeneration
What happened?
Description
opentelemetry-collector-contrib/processor/metricsgenerationprocessor/processor.go
Line 64 in 0592999
add
orsubtract
), the affected rule is skipped (and the metric not generated)Steps to Reproduce
part_a
has a value of 0part_b
Expected Result
part_b
has the same value as total.Actual Result
part_b
is not generated at all.Collector version
main, 0.90.1
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: