This project provides a Grafana dashboard to monitor Microsoft Message Queue (MSMQ) metrics using a Prometheus exporter. The exporter can be installed as a Windows service using the NSSM tool.
To install the MSMQ exporter as a Windows service, we recommend using the NSSM (Non-Sucking Service Manager) tool.
-
Download NSSM from https://nssm.cc/download.
-
Extract the downloaded archive.
-
Open powershell as an administrator on the extracted folder
-
Run the following commands to install the MSMQ exporter as a service:
.\nssm install msmq_exporter
-
Config like bellow image
-
Start service
nssm start msmq_exporter
-
After install and start windows service, check http://localhost:9188/metrics to see if it works or not
To configure Prometheus to scrape metrics from the MSMQ exporter, add the following job configuration to your prometheus.yml
file:
- job_name: 'msmq_exporter'
static_configs:
- targets: ['WEBSERVICE001:9188']
labels:
hostname: WEBSERVICE001
type: windows
company: Jin
Use .json file Download the dashboard.json file from this repository. Open Grafana and navigate to the dashboard import page. Upload the dashboard-v2.json file.
If you have any suggestions or improvements, feel free to create an issue or submit a pull request.