Skip to content

Add ability to attach node labels to all scrape jobs regardless of role #1223

Open
@bentonam

Description

Alloy discover.kubernetes has an attach_metadata{} block that can optionally include additional node information on discoveries that are not role="node" for example role="pod" this would also include all __meta_kubernetes_node labels and annotations.

Oftentimes we need to know the region, availability zone, node pool that a pod belongs in.

Proposal for each job in clusterMetrics: have a setting:

clusterMetrics:
  cadvisor:
    metricsTuning:
      nodeLabels: 
        # Whether or not to attach the node pool 
        nodepool: true
        # Whether or not to add the region
        region: true
        # Whether or not to add the availability_zone
        availability_zone: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions