To access OpenTelemetry metrics with the Keptn Lifecycle Toolkit, you must:
- Install an OpenTelemetry collector on your cluster. See OpenTelemetry Collector for more information.
Deploymentresource to integrate the Lifecycle Toolkit into your Kubernetes cluster.
KLT begins to collect OpenTelemetry metrics
as soon as the
has the basic annotations to integrate KLT in the cluster.
To expose OpenTelemetry metrics,
that has the
spec.OTelCollectorUrl field populated
with the URL of the OpenTelemetry collector.
Keptn metrics can be exposed as OpenTelemetry (OTel) metrics
9999 of the KLT metrics-operator.
To access the metrics, use the following command:
kubectl port-forward deployment/metrics-operator 9999 -n keptn-lifecycle-toolkit-system
You can access the metrics from your browser at:
For an introduction to using OpenTelemetry with Keptn metrics, see the Standardize observability getting started guide.