Backport from the Alloy repo. This will fix a bug with the static mode where the logs pipeline isn't being shut down properly.
Unfortunately, it will not fix the issue of reloading the config when a loki process metrics stage is set. Although this was fixed in Promtail, the code path for Agent Static and Flow seems to be different and the Promtail fix doesn't work.
Backport from the Alloy repo. This will fix a bug with the static mode where the logs pipeline isn't being shut down properly.
Unfortunately, it will not fix the issue of reloading the config when a loki process metrics stage is set. Although this was fixed in Promtail, the code path for Agent Static and Flow seems to be different and the Promtail fix doesn't work.