Install Prometheus and Alert Manager EP.2 - Grafana on Windows
ฝัง
- เผยแพร่เมื่อ 27 ม.ค. 2025
- This video shows the basics in getting Prometheus and Alert Manager installed within your Windows OS environment and then integrating it with Grafana.
I hope to upload my next video soon, showing how to install "Windows Exporter" to capture metrics to use within Grafana.
Prometheus Website - Download:
prometheus.io/...
NSSM Website - Download:
nssm.cc/download
NSSM Service Install CMD:
nssm install "servicename"
NSSM Prometheus Data Location Flag:
--storage.tsdb.path="Location"
NSSM Prometheus Data 90 days Retention Flag:
--storage.tsdb.retention.time=90d
NSSM Prometheus - Enable Time Series Deletion:
--web.enable-admin-api
Prometheus Default Internal URL:
localhost:9090
Alert Manager Default Internal URL:
localhost:9093
Grafana Default Internal URL:
localhost:3000
#grafana #windowsos #opensource #tutorial #prometheus #alertmanager
thanks bro
No worries, appreciate the comment 👍
i don't understand argument part. what you had put inside the argument. Can you brief argument part?
You can leave the argument blank if you wish to use the default setup, however if you want to set where you want your Prometheus data or retention period then you need to put in the flags within the argument section. I've put the below within the description of the video but for reference these are the flags I used.
NSSM Prometheus Data Location Flag:
--storage.tsdb.path="Location"
NSSM Prometheus Data 90 days Retention Flag:
--storage.tsdb.retention.time=90d
NSSM Prometheus - Enable Time Series Deletion (you don't need this, I needed to delete some data so I enabled it):
--web.enable-admin-api
Alertmanager is not populating in my list of Data Sources when trying to Add new Data Source. Any ideas?
Hi Mike,
Alert Manager should appear as a data source within Grafana as it's built into the Grafana Application.
Here is a reference guide to the Grafana KB, it will even allow you to configure it via the config file if needed:
grafana.com/docs/grafana/latest/datasources/alertmanager/
If it's still failing to appear, I would suggest reinstalling (if not done already).
If I've misunderstood, do let me know.