-
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
[exporter/prometheus] shouldn't resource_to_telemetry_conversion.enabled
be true
by default?
#35286
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
resource_to_telemetry_conversion.enabled
be true
by default?resource_to_telemetry_conversion.enabled
be true
by default?
This is something we are considering, but have chosen not to do right now because resource can contain a huge number of attributes, which are often very long (e.g. process.command_args). Instead, we provide a metric named cc @gouthamve, since this is related to recent proposals around entities. |
@mathnogueira, please take look at Prometheus' guide about how to use There is also effort on OTel's side to improve compatibility with Prometheus. This OTEP is a good step forward, but it will take a while for both communities to come up with implementations |
@ArthurSens thanks for the reference. This will definitely help! |
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. |
I think we are going to stick with the current default. There are too many resource attributes from some (java) SDKs to enable this by default. Feel free to reopen if you have further questions |
Component(s)
exporter/prometheus, exporter/prometheusremotewrite
Describe the issue you're reporting
I was working on a local stack for retrieving metrics from Kubernetes and also receive metrics from our applications and publish them to our local Grafana. Everything was working fine but all metrics were strange because they had no labels (i.e. no attributes were sent to grafana).
After 4 days debugging the connections between our k8s scrapper collectors, our main collector, and our prometheus server, I discovered I was missing the
resource_to_telemetry_conversion.enabled: true
option in my prometheus exporter config.#27839 was useful to discover I was missing that configuration. It's not the first time I had this problem, last year I had the same issue with the
prometheusremovewrite
exporter and I had forgotten about it. I was wondering why this flag is set asfalse
as its default value. Couldn't this be set astrue
as this is crucial to have metrics working properly with prometheus?The text was updated successfully, but these errors were encountered: