Create Service
Prometheus
Code Block |
---|
echo "Installation Prometheus"
D:\opentext\sw\otwatch\nssm.exe install otwatch_prometheus "D:\opentext\sw\otwatch\prometheus\prometheus.exe"
D:\opentext\sw\otwatch\nssm.exe set otwatch_prometheus AppDirectory "D:\opentext\sw\otwatch\prometheus"
D:\opentext\sw\otwatch\nssm.exe set otwatch_prometheus AppParameters "--web.enable-admin-api --web.external-url=https://chst2v212.pilatus-aircraft.com/prometheus --web.route-prefix="/prometheus" --storage.tsdb.retention.time="30d" --log.level=debug --web.enable-lifecycle"
D:\opentext\sw\otwatch\nssm.exe set otwatch_prometheus DisplayName otwatch_prometheus
D:\opentext\sw\otwatch\nssm.exe set otwatch_prometheus Description otwatch prometheus database
D:\opentext\sw\otwatch\nssm.exe set otwatch_prometheus Start SERVICE_AUTO_START
net start otwatch_prometheus
pause |
Prometheus Node Exporter
Code Block |
---|
echo Installation Node Exporter
D:\otx\sw\otwatch\nssm.exe install otwatch_client "D:\otx\sw\otwatch\prometheus_node_exporter\windows_exporter-0.15.0-amd64.exe"
D:\otx\sw\otwatch\nssm.exe set otwatch_client AppDirectory "D:\otx\sw\otwatch\prometheus_node_exporter"
D:\otx\sw\otwatch\nssm.exe set otwatch_client AppParameters "--config.file=D:\otx\sw\otwatch\prometheus_node_exporter\config.yml"
D:\otx\sw\otwatch\nssm.exe set otwatch_client DisplayName otwatch_client
D:\otx\sw\otwatch\nssm.exe set otwatch_client Description otwatch client node exporter for prometheus
D:\otx\sw\otwatch\nssm.exe set otwatch_client Start SERVICE_AUTO_START
net start otwatch_client
pause |
Prometheus Blackbox Exporter
Code Block |
---|
echo "Installation Prometheus Blackbox Exporter"
D:\opentext\sw\otwatch\nssm.exe install otwatch_blackbox "D:\opentext\sw\otwatch\prometheus_blackbox_exporter\blackbox_exporter.exe"
D:\opentext\sw\otwatch\nssm.exe set otwatch_blackbox AppDirectory "D:\opentext\sw\otwatch\prometheus_blackbox_exporter"
D:\opentext\sw\otwatch\nssm.exe set otwatch_blackbox AppParameters "--config.file=D:\opentext\sw\otwatch\prometheus_blackbox_exporter\blackbox.yml"
D:\opentext\sw\otwatch\nssm.exe set otwatch_blackbox DisplayName otwatch_blackbox
D:\opentext\sw\otwatch\nssm.exe set otwatch_blackbox Description otwatch blackbox exporter for prometheus
D:\opentext\sw\otwatch\nssm.exe set otwatch_blackbox Start SERVICE_AUTO_START
net start otwatch_blackbox
pause |
Prometheus Alert Manager
Code Block |
---|
echo "Installation Prometheus Alert Manager"
D:\opentext\sw\otwatch\nssm.exe install otwatch_alertmanager "D:\opentext\sw\otwatch\prometheus_alertmanager\alertmanager.exe"
D:\opentext\sw\otwatch\nssm.exe set otwatch_alertmanager AppDirectory "D:\opentext\sw\otwatch\prometheus_alertmanager"
D:\opentext\sw\otwatch\nssm.exe set otwatch_alertmanager AppParameters "--config.file=D:\opentext\sw\otwatch\prometheus_alertmanager\alertmanager.yml"
D:\opentext\sw\otwatch\nssm.exe set otwatch_alertmanager DisplayName otwatch_alertmanager
D:\opentext\sw\otwatch\nssm.exe set otwatch_alertmanager Description otwatch Alert Manager for prometheus
D:\opentext\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:\opentext\sw\otwatch\nssm.exe install otwatch_pushgateway "D:\opentext\sw\otwatch\prometheus_pushgatewayr\pushgateway.exe"
D:\opentext\sw\otwatch\nssm.exe set otwatch_pushgateway AppDirectory "D:\opentext\sw\otwatch\prometheus_pushgateway"
D:\opentext\sw\otwatch\nssm.exe set otwatch_pushgateway AppParameters "--persistence.file="D:\opentext\sw\otwatch\prometheus_pushgateway\memory.txt" --persistence.interval=5m --web.route-prefix="/pushgateway""
D:\opentext\sw\otwatch\nssm.exe set otwatch_pushgateway DisplayName otwatch_pushgateway
D:\opentext\sw\otwatch\nssm.exe set otwatch_pushgateway Description otwatch Pushgateway for prometheus
D:\opentext\sw\otwatch\nssm.exe set otwatch_pushgateway Start SERVICE_AUTO_START
net start otwatch_pushgateway
pause |
Prometheus Proxy
Code Block |
---|
echo "Installation Prometheus Proxy"
D:\opentext\sw\otwatch\nssm.exe install otwatch_proxy "D:\opentext\sw\otwatch\nginx\nginx.exe"
D:\opentext\sw\otwatch\nssm.exe set otwatch_proxy AppDirectory "D:\OPENTEXT\sw\otwatch\nginx"
D:\opentext\sw\otwatch\nssm.exe set otwatch_proxy DisplayName otwatch_proxy
D:\opentext\sw\otwatch\nssm.exe set otwatch_proxy Description otwatch proxy for prometheus
D:\opentext\sw\otwatch\nssm.exe set otwatch_proxy Start SERVICE_AUTO_START
net start otwatch_proxy
pause |
Prometheus SNMP Exporter
...
To access the valuable configuration information you're looking for, you'll be pleased to know that it is conveniently available on GitHub. GitHub is a highly regarded and widely used platform where developers and teams share, collaborate, and manage their code repositories.
Link → otwatch/install_windows.bat at main · handel-gmbh/otwatch · GitHub
...