OTEL_HTTP_METRICS_PROTOCOL - UAG configuration option
Description
The OTEL_HTTP_METRICS_PROTOCOL option specifies a value for the protocol used to export metrics from the agent.
This functionality can also be configured using OpenTelemetry's own environment variables, OTEL_EXPORTER_OTLP_PROTOCOL or OTEL_EXPORTER_OTLP_METRICS_PROTOCOL. However, this configuration option takes precedence over those. If you wish to configure this functionality using OpenTelemetry, then you must leave the OTEL_HTTP_METRICS_PROTOCOL option unspecified.
Note
The value of this option will be NOT be used by the Extension worker process. Extension tasks will always export using the default http/protobuf.
Usage
Method | Syntax | IBM i | UNIX | Windows | z/OS |
Configuration File Keyword | otel_http_metrics_protocol value |
|
|
Note
This option is NOT available for Unix on:
- Solaris
Values
protocol is the protocol used to export metrics.
Valid values for protocol are:
- http/json - export over HTTP with JSON encoded data
- http/protobuf - export over HTTP with protobuf encoded data
Default is http/protobuf.