Debug or File Export for internal metrics - service.telemetry.readers.periodic.exporter #14701
Replies: 3 comments 1 reply
-
|
There is a bit of a quirk here, which is that the internal telemetry uses the Go SDK, which has its own exporter interface. That means you can use any exporter provided by the SDK, and configuration from the otel-configuration schema. Any collector-specific exporter cannot be used here. If you look at the configuration schema, you will notice it does include an However, that exporter is not yet implemented in otelconf (the Go SDK package that handles otel-configuration). So it cannot be used yet. Regarding the crashes you mention, those seem a bit harsh. Could you paste a stacktrace? |
Beta Was this translation helpful? Give feedback.
-
|
To add to @dmathieu's excellent explanation, as a practical workaround while
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4319
exporters:
debug:
verbosity: detailed
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [debug]
This lets you inspect the exact payload being sent without needing the Regarding reusing exporters defined elsewhere in the config, you're correct |
Beta Was this translation helpful? Give feedback.
-
|
Glad it helped! For the Dynatrace-specific issue you mentioned, Good catch for others who may hit the same issue! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Using otel contrib v.0.139.0
For pushing the internal collector metrics a configuration like this can be used
(1) I take it there is no way to reuse an exporter defined elsewhere in the file? It's a bit odd having to define it twice.
(2) How do I use a Debug or File exporter to verify what is sent? This seems to crash the collector even with a very basic setup
See doc : https://opentelemetry.io/docs/collector/internal-telemetry/
Thanks
Beta Was this translation helpful? Give feedback.
All reactions