The installer will install Grafana Agent into the default directory C:\Program Files (x86)\Grafana Agent
. Windows Exporter can be enabled with all default options.
After installation ensure that you can reach http://localhost:12345/-/healthy
and http://localhost:12345/agent/api/v1/targets
.
If Grafana Agent is re-installed and an agent-config.yaml already exists it will not overwrite the existing one.
After installation, you can adjust C:\Program Files (x86)\Grafana Agent\agent-config.yaml
to meet your specific needs. After changing the configuration file, the Grafana Agent service must be restarted to load changes to the configuration.
Silent installation can be achieved via grafana-agent-installer.exe /S /EnableExporter "true"
. EnableExporter enables or disables Windows Exporter, default is false
.
A configuration file for the Agent is provided by default at C:\Program Files (x86)\Grafana Agent
. Depending on your configuration, you may wish to modify the default permissions of the file or move it to another directory.
When changing the location of the configuration file, you must update the Grafana Agent service to load the new path. Run the following in an elevated prompt, replacing <new_path>
with the full path holding agent-config.yaml
:
sc config "Grafana Agent" binpath= "<installed_directory>\agent-windows-amd64.exe -config.file=\"<new_path>\agent-config.yaml\""
If the Grafana Agent is installed using the installer, it can be uninstalled via Windows' Remove Programs or C:\Program Files (x86)\Grafana Agent\uninstaller.exe
. Uninstalling the Agent will stop the service and remove it from disk. This will include any configuration files in the installation directory.
When Grafana Agent is running as a Windows Service the Grafana Agent will write logs to Windows Event Logs. When running as executable, Grafana Agent will write to standard out. The logs will be written with the source of Grafana Agent
.