open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.1k stars 2.39k forks source link

[receiver/kubeletstatsreceiver] Kubeletstats receiver: Adding feasibility in kubeletstats receiver to fetch kubelet metrics #36453

Open developer1622 opened 2 days ago

developer1622 commented 2 days ago

The purpose and use-cases of the new component

Currently kubeletstats receiver only fetches metrics from /pods and /stats/summary however I heard that there are other 2 endpoints /metrics and /metrics/caadvisor

I am not quite sure about this, I might have missed discussion this receiver does not add /metrics endpoints

If the receiver name is kubeletstats receiver, but we do not have metrics pertaining to the kubelet.

Example configuration for the component

I think current configuration is good, but if the cluster does NOT have caAdvisor, user can specifically mention that caAdivisor not exists.

Telemetry data types supported

The 2 more endpoints we can consider i.e, /metrics and /metrics/caadvisior

Prometheus data types would be returned for each of the new metric.

Code Owner(s)

No response

Sponsor (optional)

No response

Additional context

The reason is if kubelet itself looses due to some reasons, the whole node pods would be in not correct state. health of kubelet and it's operations metrics would definitely for the busy clusters.

No response