Configure MicroShift Observability
You must configure MicroShift Observability after it is installed by specifying a valid endpoint. You can specify any OpenTelemetry Protocol (OTLP)-compatible endpoint for each configuration before starting MicroShift.
|
|
If an endpoint is not specified, MicroShift Observability does not start. |
-
Update the
/etc/microshift/observability/opentelemetry-collector.yamlfile to specify an OTLP-compatible endpoint with the following information. The endpoint must link to an IP address or host name, and port number of an OTLP service.OTLP-compatible endpoint configuration# ... exporters: otlp: sending_queue: storage: file_storage endpoint: ${env:OTEL_BACKEND}:4317 tls: insecure: true # ... service: # ... telemetry: metrics: readers: - periodic: exporter: otlp: protocol: http/protobuf endpoint: http://${env:OTEL_BACKEND}:4318 # ...Replace
${env:OTEL_BACKEND}with the IP address or hostname of the remote back end. This IP address resolves to the local node’s hostname. An unreachable endpoint is reported in the MicroShift service logs. -
Each time that you update the
opentelemetry-collector.yamlfile, you must restart MicroShift Observability to apply the updates.Restart MicroShift Observability by entering the following command:
$ sudo systemctl restart microshift-observability