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
It would be good if there is a way to configure Alloy to always have a high priority such as "realtime" or "high". I don't think it should be the default though. Alloy may not always be a very critical piece of software for the person who installed it.
There could be a few ways to do this:
Via Alloy's config file. This would have to be a top-level service block similar to remotecfg, because there cannot be more than one such block for an Alloy instance. We'd need to make sure the priority is set accordingly. E.g. if an Alloy instance is ran with a windows block that gives it a high priority, and the block is removed and the config is reloaded, Alloy should go back to using normal priority.
Via a new Alloy command line argument. This is simpler. The downside is that editing the command line parameters is usually more difficult than editing the config file. On Windows, the command line parameters for the Alloy service are stored in HKEY_LOCAL_MACHINE\SOFTWARE\GrafanaLabs\Alloy.
Use case
Alloy may not work properly when the machine is resource constrained. Since Alloy is used for monitoring, many users would it to work even if there is not much free memory and CPU. That way they can spot issues with the OS and with applications.
A customer recently noticed that their Alloy instance wasn't sending metrics when the CPU consumption is high. To resolve this, they:
Set the priority of the Alloy process to "realtime".
I have alloy running in an Environment with high load and alloy stops sending Windows metrics daily between 8am and 5pm.
Changing priority of the process is ok If it helps.
Except only Set it to "high" or "Realtime" please allow to Set it to lower priority as normal If possible. Sometimes Business critical appliances are more important than alloy.
Another Thing i would Like to See ist a metric or a Log Message If alloy can Not get the ressources it needs and stops collecting metrics. However i am Not Sure If this is possible.
@Nachtfalkeaw do you also use loki.source.windowsevent? In Alloy v1.7 there will be a few changes (this and this) which optimise its CPU consumption. I wonder if this would make the process lightweight enough that the OS can schedule it fine even under high CPU load. Additionally, you could try using enable_v2_collector or use_api in the services metrics collector.
Request
It would be good if there is a way to configure Alloy to always have a high priority such as "realtime" or "high". I don't think it should be the default though. Alloy may not always be a very critical piece of software for the person who installed it.
There could be a few ways to do this:
windows
block that gives it a high priority, and the block is removed and the config is reloaded, Alloy should go back to using normal priority.HKEY_LOCAL_MACHINE\SOFTWARE\GrafanaLabs\Alloy
.Use case
Alloy may not work properly when the machine is resource constrained. Since Alloy is used for monitoring, many users would it to work even if there is not much free memory and CPU. That way they can spot issues with the OS and with applications.
A customer recently noticed that their Alloy instance wasn't sending metrics when the CPU consumption is high. To resolve this, they:
The text was updated successfully, but these errors were encountered: