opentelemetry-collector/service/internal/promtest
Yang Song 59b5328782
Downgrade otel-go (#13429) (#13466)
cherry-pick of
d82267dd69

`go.opentelemetry.io/otel/exporters/prometheus v0.59.1` does not fully
fix the metric name issue so we have to revert to v0.58.0

Downgrades opentelemetry-go dependencies effectively reverting #13289
and others

- Due to a
[bug](https://github.com/open-telemetry/opentelemetry-go/issues/7039) in
the prometheus exporter, if you are configuring a prometheus exporter,
the collector's internal metrics will be emitted with an unexpected
suffix in its name. For example, the metric
`otelcol_exporter_sent_spans__spans__total` instead of
`otelcol_exporter_sent_spans_total`. The workaround is to manually
configure `without_units: true` in your prometheus exporter config

 ```yaml
  service:
    telemetry:
      metrics:
        readers:
          - pull: 
              exporter: 
                prometheus: 
                  host: 0.0.0.0 
                  port: 8888 
                  without_units: true 
 ``` 
     
If you are using the collector's default Prometheus exporter for
exporting internal metrics you are unaffected.

Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
Co-authored-by: alex boten <223565+codeboten@users.noreply.github.com>
2025-07-23 16:16:50 +00:00
..
server_util.go Downgrade otel-go (#13429) (#13466) 2025-07-23 16:16:50 +00:00