Configure OTLP forwarding
Configure automation orchestrator to forward audit events to an external OpenTelemetry Protocol (OTLP) compatible observability backend.
Before you begin
- You have cluster administrator access to the OpenShift cluster running automation orchestrator.
- You have an OTLP-compatible observability backend with an HTTP endpoint that accepts log data on the
/v1/logspath. - If your endpoint requires authentication, you have the API key or TLS certificates ready.
About this task
Automation orchestrator always writes audit events to pod standard output. When you enable OTLP forwarding, events are also exported to your observability backend.
Procedure
Results
Verify that the backend pod has the OTEL environment variables set:
$ oc exec -n namespace deployment/cr-name-backend -c backend -- env | grep APP_OTELThe output lists the APP_OTEL_* variables corresponding to your configuration.
OTLP configuration reference
Use the following field reference when configuring the .spec.otel block of the AutomationOrchestrator custom resource to enable OpenTelemetry Protocol (OTLP) forwarding.
| Field | Type | Default | Description |
|---|---|---|---|
enabled |
Boolean | false |
Enable OTLP forwarding. Whenfalse, audit events are written to pod standard output only. |
endpoint |
String | — | OTLP HTTP endpoint for logs. Usehttps:// for external endpoints. Usehttp:// only for localhost or cluster-internal.svc DNS addresses. |
serviceName |
String | Derived from product name | Optional. Service name reported in OpenTelemetry resource attributes. When omitted, automation orchestrator uses a value derived from the product name configuration. Set this field toautomation-orchestrator to use a consistent, meaningful service name in your observability platform. |
authHeaderName |
String | — | Optional. HTTP header name used to send the API key. When omitted, the backend usesAuthorization. |
apiKeySecretRef.name |
String | — | Name of the Secret containing the API key. The Secret must have a key namedapi-key with the bare token value. Automation orchestrator automatically prependsBearer when sending the header. |
caCertSecretRef.name |
String | — | Name of the Secret containing the CA certificate for server verification. The Secret must have a key namedca.crt. |
clientCertSecretRef.name |
String | — | Name of the Secret containing the client certificate and private key for mutual TLS (mTLS). The Secret must be of typekubernetes.io/tls with keystls.crt andtls.key. |