Metalhead
Metalhead

Reputation: 1449

How to monitor a Kubernetes Cluster using OpenTelemetry - Monitoring the cluster components itself

I understand using OpenTelemetry in Kubernetes for monitoring the pod itself, like metrics and traces, but does OpenTelemetry support monitoring the Kubernetes Cluster itself, i.e etcd, apiserver, kublet.? Are there examples that can be shared that demonstrate this capability ? Or do I need to use Prometheus for same?

Upvotes: 0

Views: 520

Answers (1)

Ben Hall
Ben Hall

Reputation: 1433

There are receivers for the OpenTelemetry Collector in beta or alpha right now. You should be looking at the Collector anyway for any OpenTelemetry in production.

  • Kubernetes Cluster Receiver. This collects cluster-level metrics from the Kubernetes API server. It uses the K8s API to listen for updates. A single instance of this receiver can be used to monitor a cluster.
  • Kubelet Stats Receiver. This pulls pod metrics from the API server on a kubelet and sends it down the metric pipeline for further processing
  • Kubernetes Events Receiver. This receiver collects events (logs) from the Kubernetes API server.

To help you understand the role of the Collector, see my post.

Then you could export your metrics to something like Prometheus via an exporter plugin to the Collector.

Upvotes: 1

Related Questions