-
Notifications
You must be signed in to change notification settings - Fork 1.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
Collector metrics names reported with OpenCensus and OpenTelemetry are inconsistent #5882
Comments
The "short_name" attribute is intended to be used for the prometheus namespace, but is currently a work-in-progress:
Also, I'm working on a migration OTel for OC -> OTel to help mitigate or prevent breaking changes when migrating: |
As discussed during a SIG meeting today, we will be able to move |
@dashpole given that we currently expose Collector's metrics in Prometheus format only, do you think it makes sense to set |
The OC metrics are not at all present anyway when using |
I'm fine prefixing everything we use the OTel API for with |
Just one small clarification:
Currently all these metrics are "not available" (not different) if |
I'd prefer waiting. I don't see the urgency in changing the OTel metric names while the OTel metric SDK is being rewritten. |
Closed by #6223 since now all metrics with prometheus otel have also the prefix. |
Currently Collector uses OpenCensus SDK to report its own metrics. Migration to OpenTelemetry metrics SDK started with a feature gate
telemetry.useOtelForInternalMetrics
. There is a significant difference in the produced metrics.OpenCensus metrics utilize the prometheus exporter with the default metrics namespace set to
otelcol
. It means that all the reported metrics get theotelcol
prefix, and we have metrics reported asotelcol_exporter_enqueue_failed_log_records
,otelcol_process_uptime
, etc.OpenTelemetry metrics SDK doesn't have a capability to specify the namespace on all the metrics. So the metrics would be
exporter_enqueue_failed_log_records
,process_uptime
, etc.Before proceeding with the migration process, we need to decide what metric names would look like long term. In particular, do we want to keep
otelcol
prefix or remove it?If we want to keep the prefix, we should probably stop using the namespace configuration on the OpenCensus Prometheus exporter and make sure all the metrics have the
otelcol
prefix set explicitly. This should be a no-op change for end users of the default collector's metrics.If we want to remove the prefix, it will be a significant breaking change for current OTel Collector users. We should probably run it through a deprecation process using another feature gate with an extended (up to 1 year?) duration.
The text was updated successfully, but these errors were encountered: