Istio Telemetry Custom Resource¶
The Istio Telemetry Custom Resource is a Kubernetes Custom Resource Definition (CRD) provided by Istio (API version telemetry.istio.io/v1alpha1) used to dynamically configure telemetry features such as access logging, Metrics, and Tracing for the Service mesh.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md]
Configuration¶
The resource is defined using a spec section that dictates the behavior of the telemetry being collected.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md] A common use case involves configuring accessLogging to specify how and where logs are delivered.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md]
Access Logging¶
Within the accessLogging configuration, users can define a list of providers.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md] For example, to integrate with an external [[OpenTelemetry]] system, a provider named otel can be specified.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md]
Example Manifest¶
The following example demonstrates a Telemetry resource applied in the istio-system namespace to enable mesh-wide default logging that sends data to an OpenTelemetry endpoint:^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md]
apiVersion: telemetry.istio.io/v1alpha1
kind: Telemetry
metadata:
name: mesh-default
namespace: istio-system
spec:
accessLogging:
- providers:
- name: otel
Workflow¶
To utilize this resource for custom telemetry backends, a typical workflow involves deploying a receiver (such as an OpenTelemetry Collector), applying the Telemetry resource, and then generating traffic to observe the output.^[400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md]
Related Concepts¶
- [[OpenTelemetry]]
- [[Observability]]
- Istio
Sources¶
- 400-devops-07-monitoring-and-observability-k8s-istio-samples-open-telemetry-readme.md