Table of Contents | ||||
---|---|---|---|---|
|
Create Service
Prometheus
Code Block |
---|
echo Installation Prometheus D:\otx\sw\otwatch\nssm.exe install otwatch_prometheus "D:\otx\sw\otwatch\prometheus\prometheus.exe" D:\otx\sw\otwatch\nssm.exe set otwatch_prometheus AppDirectory "D:\otx\sw\otwatch\prometheus" D:\otx\sw\otwatch\nssm.exe set otwatch_prometheus AppParameters "--config.file=D:\otx\sw\otwatch\prometheus\prometheus.yml --web.enable-admin-api --web.external-url=https://FQDN/prometheus --web.route-prefix="/" --storage.tsdb.retention.time="365d" --log.level=debug" D:\otx\sw\otwatch\nssm.exe set otwatch_prometheus DisplayName otwatch_prometheus D:\otx\sw\otwatch\nssm.exe set otwatch_prometheus Description otwatch prometheus database D:\otx\sw\otwatch\nssm.exe set otwatch_prometheus Start SERVICE_AUTO_START net start otwatch_prometheus pause |
...
Code Block |
---|
echo Installation Prometheus Alert Manager D:\otx\sw\otwatch\nssm.exe install otwatch_alertmanager "D:\otx\sw\otwatch\prometheus_alertmanager\alertmanager.exe" D:\otx\sw\otwatch\nssm.exe set otwatch_alertmanager AppDirectory "D:\otx\sw\otwatch\prometheus_alertmanager" D:\otx\sw\otwatch\nssm.exe set otwatch_alertmanager AppParameters "--config.file=D:\otx\sw\otwatch\prometheus_alertmanager\alertmanager.yml" D:\otx\sw\otwatch\nssm.exe set otwatch_alertmanager DisplayName otwatch_alertmanager D:\otx\sw\otwatch\nssm.exe set otwatch_alertmanager Description otwatch Alert Manager for prometheus D:\otx\sw\otwatch\nssm.exe set otwatch_alertmanager Start SERVICE_AUTO_START net start otwatch_alertmanager pause |
Prometheus Pushgatway
Code Block |
---|
echo Installation Prometheus Pushgateway D:\otx\sw\otwatch\nssm.exe install otwatch_pushgateway "D:\otx\sw\otwatch\prometheus_alertmanager\alertmanager.exe" D:\otx\sw\otwatch\nssm.exe set otwatch_pushgateway AppDirectory "D:\otx\sw\otwatch\prometheus_pushgateway" D:\otx\sw\otwatch\nssm.exe set otwatch_pushgateway DisplayName otwatch_pushgateway D:\otx\sw\otwatch\nssm.exe set otwatch_pushgateway Description otwatch Pushgateway for prometheus D:\otx\sw\otwatch\nssm.exe set otwatch_pushgateway Start SERVICE_AUTO_START net start otwatch_pushgateway pause |