You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some of our Windows servers the Grafana Alloy agent consumes a lot of CPU (20-30%). The issue seems to occur on servers when there are many users logged in with RDP sessions or if the server is a Citrix App server.
Is this a known issue in some way and is there some configurations available to reduce this?
There is no advanced configuration, just the standard os, cpu, net, system, memory and textfile collectors are used. We have tried to remove some of the collectors but no major changes in consumed resources found.
System information
Windows Server 2022 Standard
Software version
Grafana alloy v1.4.3
Config
prometheus.exporter.windows"userpromfiles"{enabled_collectors=["textfile"]}prometheus.scrape"userpromfiles"{scrape_interval="60s"targets=prometheus.exporter.windows.userpromfiles.targetsforward_to=[prometheus.relabel.userfiles.receiver]}// This section sets the correct "instance" in lowercase (for windows server, the hostname)prometheus.relabel"userfiles"{forward_to=[prometheus.remote_write.testtenant.receiver]rule{source_labels=["instance"]regex="(.*?)($|:.*)"action="replace"replacement="$1"target_label="instance"}rule{source_labels=(["instance"])action="lowercase"target_label="instance"}}prometheus.exporter.windows"winserver"{enabled_collectors=["cpu","cs","logical_disk","net","os","system","memory"]}prometheus.scrape"example"{scrape_interval="60s"targets=prometheus.exporter.windows.winserver.targetsforward_to=[prometheus.relabel.dynamics.receiver]}// This section sets the correct "instance" in lowercase (for windows server, the hostname)prometheus.relabel"dynamics"{forward_to=[prometheus.remote_write.testtenant.receiver]rule{source_labels=["instance"]regex="(.*?)($|:.*)"action="replace"replacement="$1"target_label="instance"}rule{source_labels=(["instance"])action="lowercase"target_label="instance"}}local.file"env"{filename="C:\\Program Files\\GrafanaLabs\\Alloy\\env.facts"poll_frequency="60m"}prometheus.remote_write"testtenant"{endpoint{url="https://xxx/api/v1/push"headers={"tenantid"="testtenant",}tls_config{insecure_skip_verify=true}}external_labels={"company"=to_lower(json_path(local.file.env.content,"Company")[0]),"envgroup"=to_lower(json_path(local.file.env.content,"envgroup")[0]),"env"=to_lower(json_path(local.file.env.content,"env")[0]),"system"=to_lower(json_path(local.file.env.content,"system")[0]),"dmz"=to_lower(json_path(local.file.env.content,"dmz")[0]),"domain"=to_lower(json_path(local.file.env.content,"Domain")[0]),}}
BR
Jan
The text was updated successfully, but these errors were encountered:
We have tested removing collectors one by one, down to a single one, but there is on significant change in CPU usage. We are only using Alloy for the OS metrics (as in posted config). No logs. We have it installed in about 2000 windows servers and there are only a few that has this problem. What we can see the only common thing on the problematic servers are that there are many logged in users, like Citrix servers with many remote desktop users or "management" servers used as client for many RDP users to manage other systems.
CPU load almost imediatly goes up to 25-30% and stays there.
Issue
On some of our Windows servers the Grafana Alloy agent consumes a lot of CPU (20-30%). The issue seems to occur on servers when there are many users logged in with RDP sessions or if the server is a Citrix App server.
Is this a known issue in some way and is there some configurations available to reduce this?
There is no advanced configuration, just the standard os, cpu, net, system, memory and textfile collectors are used. We have tried to remove some of the collectors but no major changes in consumed resources found.
System information
Windows Server 2022 Standard
Software version
Grafana alloy v1.4.3
Config
BR
Jan
The text was updated successfully, but these errors were encountered: