Skip to content

Commit 436fdcb

Browse files
authored
[NR-120689] disable prometheus normalization feature-gate by default (#57)
* disable prometheus normalization feature-gate by default * disable prometheus normalize name feature gate in dockerfile
1 parent 563179b commit 436fdcb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

distributions/nr-otel-collector/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifica
1010
COPY --chmod=755 nr-otel-collector /nr-otel-collector
1111
COPY configs/nr-otel-collector-agent-linux.yaml /etc/nr-otel-collector/config.yaml
1212
ENTRYPOINT ["/nr-otel-collector"]
13-
CMD ["--config", "/etc/nr-otel-collector/config.yaml"]
13+
CMD ["--config", "/etc/nr-otel-collector/config.yaml", "--feature-gates=-pkg.translator.prometheus.NormalizeName"]
1414
EXPOSE 4317 55678 55679

distributions/nr-otel-collector/nr-otel-collector.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ NEW_RELIC_MEMORY_LIMIT_MIB=100
66

77
# Command-line options for the nr-otel-collector service.
88
# Run `/usr/bin/nr-otel-collector --help` to see all available options.
9-
OTELCOL_OPTIONS="--config=/etc/nr-otel-collector/config.yaml"
9+
#
10+
# pkg.translator.prometheus.NormalizeName feature-gate is disabled by default to avoid altering prometheus metrics
11+
# names when reported through non-prometheus exporters.
12+
OTELCOL_OPTIONS="--config=/etc/nr-otel-collector/config.yaml --feature-gates=-pkg.translator.prometheus.NormalizeName"

0 commit comments

Comments
 (0)