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

Enhance nodeSelector in GrafanaAgent CRD #4178

Open
sakazuki opened this issue Jun 15, 2023 · 0 comments
Open

Enhance nodeSelector in GrafanaAgent CRD #4178

sakazuki opened this issue Jun 15, 2023 · 0 comments
Labels
enhancement New feature or request operator Grafana Agent Operator related variant/operator Related to Grafana Agent Static Operator.

Comments

@sakazuki
Copy link

Request

Background

I want to deploy Grafana Agents through the Grafana Agent Operator on EKS with the following requirements:

  1. Metrics should only work on selected nodes (e.g., node-group=monitoring).
  2. Integrations (node-exporter) should work on all nodes.
  3. Logs should work on all nodes.

To achieve this, I used the nodeSelector in the GrafanaAgent CRD. However, this nodeSelector affected not only metrics (1) but also integrations (2) and logs (3).

I attempted to split the GrafanaAgent manifest into two separate manifests, one for metrics and the other for integrations and logs. However, this approach did not work well because integrations require metrics from the same manifest.

Request

I would like to request the addition of a method to control the nodeSelector specifically for metrics.

Use case

The nodes consist of regular instances and spot instances. Since spot instances are dynamically scaled up and down, I would like to place the metrics on regular instances.

The regular instances have a label(node-group=monitoring). The spot instances have a label (nodegroup=spot).

@sakazuki sakazuki added the enhancement New feature or request label Jun 15, 2023
@rfratto rfratto added operator Grafana Agent Operator related and removed type/operator labels Nov 2, 2023
@rfratto rfratto added the variant/operator Related to Grafana Agent Static Operator. label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request operator Grafana Agent Operator related variant/operator Related to Grafana Agent Static Operator.
Projects
No open projects
Development

No branches or pull requests

2 participants