How to Install and Run Prometheus Alertmanager as a Windows Service Using NSSM
Setting up Prometheus Alertmanager on Windows is straightforward, but running it as a Windows service can provide great benefits…
How to Install and Run Prometheus Alertmanager as a Windows Service Using NSSM
Setting up Prometheus Alertmanager on Windows is straightforward, but running it as a Windows service can provide great benefits, especially when managing alerts for long-term projects. In this blog post, we’ll walk through the process of installing Alertmanager and running it as a service using NSSM (Non-Sucking Service Manager), ensuring it runs seamlessly in the background.
Example: Installing Prometheus Alertmanager as a Windows Service with NSSM
Step 1: Download and Extract NSSM
First, download NSSM from here and extract the files to a folder on your system.
Step 2: Download and Extract Alertmanager
Next, head over to Prometheus’s GitHub page and download the latest Windows release for Alertmanager. Extract it into a folder of your choice.
Step 3: Create the Configuration File
Alertmanager requires a configuration file named alertmanager.yml. If you don’t already have one, create it in the same folder where alertmanager.exe is located.
Step 4: Install Alertmanager as a Service Using NSSM
Now, open a command prompt or PowerShell window and navigate to the folder where nssm.exe and alertmanager.exe are located. Run the following command:
nssm install AlertManager
This will open a new window where you will need to fill in the necessary details:
- Path: Provide the full path to
alertmanager.exe(e.g.,C:\path\to\alertmanager\alertmanager.exe). - Arguments: Enter the configuration argument (
--config.file=alertmanager.yml). - Startup Directory: Set this to the folder where
alertmanager.exeandalertmanager.ymlare located.

Step 5: Start the Service
Once the service is installed, you can start it using:
net start AlertManager
This will launch Alertmanager as a Windows service, and you can now access it via http://localhost:9093.
By following these simple steps, you can ensure that Alertmanager runs as a background service on your Windows machine, automatically starting whenever the system is rebooted. This method helps automate the alerting process for your Prometheus setup, ensuring high availability and reliability.
메타데이터
- post_id
- 39052d783dbd
- slug
- how-to-install-and-run-prometheus-alertmanager-as-a-windows-service-using-nssm-39052d783dbd
- url
- https://medium.com/@saber-tabatabaee/how-to-install-and-run-prometheus-alertmanager-as-a-windows-service-using-nssm-39052d783dbd
- canonical_url
- https://medium.com/@saber-tabatabaee/how-to-install-and-run-prometheus-alertmanager-as-a-windows-service-using-nssm-39052d783dbd
- author_url
- https://medium.com/@saber-tabatabaee
- status
- ok
- fetched_at
- 2026-06-20 20:29:01