You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/internal-telemetry-config.yaml
+29-10Lines changed: 29 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,16 @@
2
2
# This configuration is intended to be used in conjunction with a configuration of components and pipelines. The
3
3
# collector supports config merging on startup.
4
4
##### Configuration via environment variables
5
-
# For valid values, see: https://opentelemetry.io/docs/collector/internal-telemetry/
5
+
# For official documentation, see: https://opentelemetry.io/docs/collector/internal-telemetry/
6
6
## Required
7
7
# - INTERNAL_TELEMETRY_NEW_RELIC_LICENSE_KEY
8
8
## Optional
9
-
# - INTERNAL_TELEMETRY_SERVICE_NAME: determines entity name in New Relic
10
-
# - INTERNAL_TELEMETRY_OTLP_ENDPOINT: defaults to https://otlp.nr-data.net (https://docs.newrelic.com/docs/opentelemetry/best-practices/opentelemetry-otlp/)
11
-
# - INTERNAL_TELEMETRY_METRICS_LEVEL
12
-
# - INTERNAL_TELEMETRY_LOG_LEVEL
9
+
# - INTERNAL_TELEMETRY_SERVICE_NAME: defaults to 'otel-collector', determines entity name in New Relic
10
+
# - INTERNAL_TELEMETRY_OTLP_ENDPOINT: defaults to 'https://otlp.nr-data.net', see https://docs.newrelic.com/docs/opentelemetry/best-practices/opentelemetry-otlp/ and https://docs.newrelic.com/docs/opentelemetry/best-practices/opentelemetry-otlp-troubleshooting/
11
+
# - INTERNAL_TELEMETRY_METRICS_LEVEL: defaults to 'detailed', other values are 'normal', 'basic', 'none'
12
+
# - INTERNAL_TELEMETRY_LOG_LEVEL: defaults to INFO, other values are DEBUG, WARN, ERROR
13
+
# - INTERNAL_TELEMETRY_TRACE_LEVEL: defaults to 'basic', other value is 'none'
14
+
# - INTERNAL_TELEMETRY_TRACE_SAMPLE_RATIO: defaults to 1.0, i.e. all spans get sampled, use float <1, e.g. 0.1 for 10% sampling
# default sampling config for reference to simplify overwrites even if not exposed via env var, e.g. --config=yaml:service::telemetry::logs::sampling::enabled::false
31
+
sampling:
32
+
enabled: true
33
+
# The interval in seconds that the logger applies to each sampling.
34
+
tick: 10s
35
+
# The number of messages logged at the start of each sampling::tick
36
+
initial: 10
37
+
# Sets the sampling policy for subsequent messages after sampling::initial messages are logged. When sampling::thereafter is set to N, every Nth message is logged and all others are dropped. If N is zero, the logger drops all messages after sampling::initial messages are logged.
0 commit comments