Skip to content

[opentelemetry-kube-stack] Unify both collectors in a single one #1726

Open
@JorTurFer

Description

@JorTurFer

Currently, the chart deploys 2 different collectors, one to scrape the cluster resources as daemonset and other to retrieve k8s api information as deployment with a single replica.

In latest versions, both receivers (k8s_cluster and k8sobjects) support a parameter to enable leader election k8s_leader_elector, which improves the reliability of the receiver adding HA capabilities.

My proposal is unifying both collectors in a single one, running as daemonset with k8s_leader_elector to keep a single instance pulling that info from k8s api.

I'm willing to open a PR with the needed changes, but I'm not fully sure if this will be accepted as removing the second collector could be a breaking change. If you think that this is worth, I'll open a PR later on

In case of not agreeing with unifying them, I'd like to as to at least, support multiple instances of cluster collector to have it with HA config just adding configurable instances to that collector + leader election

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions