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

Operator Compute resources for log agent and metric agent should be separated #2081

Open
andreivaloshyn opened this issue Aug 29, 2022 · 2 comments
Labels
operator Grafana Agent Operator related type/docs Docs Squad label across all Grafana Labs repos variant/operator Related to Grafana Agent Static Operator.

Comments

@andreivaloshyn
Copy link

Now we can set up compute resources only for entire agent

apiVersion: monitoring.grafana.com/v1alpha1
kind: GrafanaAgent
metadata:
  name: grafana-agent
  labels:
    app: grafana-agent
spec:
  image: grafana/agent
  resources:
    requests:
      cpu: {{ GRAFANA_AGENT_RESOURCE_CPU_MIN }}
      memory: {{ GRAFANA_AGENT_RESOURCE_MEMORY_MIN }}
    limits:
      cpu: {{ GRAFANA_AGENT_RESOURCE_CPU_MAX }}
      memory: {{ GRAFANA_AGENT_RESOURCE_MEMORY_MAX }}
....

and it will be applied for Metric StatefulSet and Log DaemonSet which sometimes can be inconvenient

@marctc marctc added the operator Grafana Agent Operator related label Aug 30, 2022
@captncraig
Copy link
Contributor

A workaround for this would be to have multiple GrafanaAgent resources for each use case. One for metrics and one for logs. It sounds a little annoying, but it would functionally be the same thing.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2022

This issue has been automatically marked as stale because it has not had any activity in the past 30 days.
The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed in 7 days if there is no new activity.
Thank you for your contributions!

@github-actions github-actions bot added the stale Issue/PR mark as stale due lack of activity label Oct 2, 2022
@marctc marctc added area/docs and removed stale Issue/PR mark as stale due lack of activity area/operator labels Oct 31, 2022
@osg-grafana osg-grafana added type/docs Docs Squad label across all Grafana Labs repos and removed area/docs labels Nov 1, 2022
@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
operator Grafana Agent Operator related type/docs Docs Squad label across all Grafana Labs repos variant/operator Related to Grafana Agent Static Operator.
Projects
No open projects
Status: No status
Development

No branches or pull requests

5 participants