Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bentonam opened this issue Feb 10, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@bentonam
Copy link
Collaborator

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
@bentonam bentonam added the enhancement New feature or request label Feb 10, 2025
@bentonam bentonam self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant