Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

DocumentationGrafana AgentSet up Grafana AgentInstall Grafana Agent on Windows
Open source

Install Grafana Agent on Windows

Install Grafana Agent and get it up and running on Windows.


  1. Navigate to Releases.

    This page includes instructions for downloading static binaries that are published with every release. These releases contain the plain binary alongside system packages for Windows, Red Hat, and Debian Linux.

  2. Scroll down to the Assets section.

  3. Download grafana-agent-installer.exe.

    You can also download the grafana-agent-installer.exe asset directly from

    Grafana Agent is installed into the default directory C:\Program Files\Grafana Agent. The windows_exporter integration can be enabled with all default windows_exporter options.

  4. Check you can access http://localhost:12345/-/healthy and http://localhost:12345/agent/api/v1/metrics/targets.

  5. (Optional): You can adjust C:\Program Files\Grafana Agent\agent-config.yaml to meet your specific needs. After changing the configuration file, restart the Grafana Agent service to load changes to the configuration.

    Existing configuration files are kept when re-installing or upgrading the Grafana Agent.

Silent Installation

You can install Grafana Agent using silent installation as follows.

  1. Enter the following in your command line. grafana-agent-installer.exe /S /EnableExporter true /Username xyz /Password password /Url ""

  2. Set EnableExporter to enable Windows Exporter. The default is false.

  3. Enter a Username, Password, and URL to set the global remote_write configuration.

You do not need to set username, password, and URL if you are not using remote_write. If you are using powershell, use triple quotes """""" around the URL parameter around the url parameter.


A configuration file for the Grafana Agent is provided by default at C:\Program Files\Grafana Agent. Depending on your configuration, you can modify the default permissions of the file or move it to another directory.

If you change the location of the configuration file, ensure you complete the following steps.

  1. Update the Grafana Agent service to load the new path.
  2. 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\""

Uninstall Grafana Agent

If you installed Grafana Agent using the Windows installer, you can uninstall it using Windows’ Remove Programs or C:\Program Files\Grafana Agent\uninstaller.exe. Uninstalling Grafana Agent will stop the service and remove it from disk. This includes any configuration files in the installation directory. Grafana Agent can also be silently uninstalled by executing uninstall.exe /S while running as Administrator.


When Grafana Agent runs as a Windows Service, it writes logs to Windows Event Logs. When running as executable, Grafana Agent will write to standard out. The logs will be written with the event source name of Grafana Agent.

Pushing Windows logs to Grafana Loki

Grafana Agent can use the embedded promtail to push Windows Event Logs to Grafana Loki. Example configuration below:

  log_level: debug
  # Choose a directory to save the last read position of log files at.
  # This directory will be created if it doesn't already exist.
  positions_directory: "C:\\path\\to\\directory"
    - name: windows
      # Loki endpoint to push logs to
        - url:
      - job_name: windows
          # Note the directory structure must already exist but the file will be created on demand
          bookmark_path: "C:\\path\\to\\bookmark\\directory\\bookmark.xml"
          use_incoming_timestamp: false
          eventlog_name: "Application"
          # Filter for logs
          xpath_query: '*'
            job: windows

Additional windows_events configuration details can be found here.