-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
metricstransformprocessor just not working #29853
Comments
Pinging code owners for processor/metricstransform: @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @tcaty, this kind of issue is usually due to metrics being in a different format than expected, so either the label isn't added properly, or the exporter doesn't handle it properly. One thing to note wiht your config is that Prometheus has different naming standards on metrics than OTEL. So when metrics are being exported by the Prometheus exporter they're converted to match Prometheus's format. This means that when metrics are being modified by the To be able to make progress debugging this, could you add the debug exporter to your metrics pipeline with |
Hello @crobert-1! Thanks for your reply! You're right, the kind of issue is different format in my case too. Let me explain, I thought that metrics that I see in prometheus dashboard are same with metrics that You can see there is
Therefore
And now it works as expected! Thanks for your reply again! P.S. I'll use debug exporter to see what labels come from |
Glad to hear you were able to find the solution! Thanks for including it as well, it's always helpful to see what ends up working. 👍 |
Component(s)
processor/metricstransform
What happened?
Description
Hi! Today I faced this issue: I tried to use
metricstransform
processor in metrics pipeline but it just not working.Steps to Reproduce
metricstransform
in pipelinesExpected Result
Target metric should contains new label like that
Actual Result
As you can see on screenshot below prometheus pull metrics which has no custom label from metricstransform
Collector version
v0.90.1
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: