Grafana Alloy Upgrade Process for Windows Deployments

Hi everyone

I’m running Grafana Alloy with “remotecfg” enabled as an Agent on several Windows and Linux Servers to collect Metrics and Logs. While it is pretty easy to update Alloy using the “apt” repository on my Ubuntu machines, I am struggling to find an acceptable process for Windows deployments.

I would be fine with just rerunning the Installation-Script from Fleet Management on the Windows machines but when I do so, the version is not updated inside the Fleet Management (also after service restarts) even though the new version was successfully installed on the Windows machine (Server has version v1.7.4, Fleet Management still v1.7.2).

image

I konw this is just a “cosmetic” issue but I would very much like to be able to track alloy versions inside the Fleet Management. Does anyone know a better upgrade process?

As of now I need to completely reinstall Alloy and remove the Collector from Fleet Management in order for the correct version to be displayed. Like this I have to reassign all my Custom Matching Attributes after every reinstallation.

Thanks for your help!

1 Like

Hey fabio18fc, did you ever get a solution to this issue? I have 600+ servers I am running a PowerShell script to update and the update works fine, but I also see the Fleet Manager entry showing the older version of the agent. I did find a way of doing it, but it is not pretty. Log into the server, uninstall the agent, remove the entry from Fleet Management, then install the agent again. This gets it to show up correctly, but I cannot do this for as many servers as I have and every month or so to keep up with the latest version.

Hi donharris1

Thanks for your response. It seems like this issue has been solved by now. I upgraded the alloy version of some of my servers this morning and the version number has automatically updated in FM after the upgrade. Is this also working for you now?