...
Create Service
Prometheus
Code Block |
---|
echo "Installation Prometheus" D:\otxopentext\sw\otwatch\nssm.exe install otwatch_prometheus "D:\otxopentext\sw\otwatch\prometheus\prometheus.exe" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_prometheus AppDirectory "D:\otxopentext\sw\otwatch\prometheus" D:\otxopentext\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://FQDNchst2v212.pilatus-aircraft.com/prometheus --web.route-prefix="/prometheus" --storage.tsdb.retention.time="365d30d" --log.level=debug --web.enable-lifecycle" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_prometheus DisplayName otwatch_prometheus D:\otxopentext\sw\otwatch\nssm.exe set otwatch_prometheus Description otwatch prometheus database D:\otxopentext\sw\otwatch\nssm.exe set otwatch_prometheus Start SERVICE_AUTO_START net start otwatch_prometheus pause |
...
Prometheus Blackbox Exporter
Code Block |
---|
echo "Installation Prometheus Blackbox Exporter" D:\otxopentext\sw\otwatch\nssm.exe install otwatch_blackbox "D:\otxopentext\sw\otwatch\prometheus_blackbox_exporter\blackbox_exporter.exe" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_blackbox AppDirectory "D:\otxopentext\sw\otwatch\prometheus_blackbox_exporter" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_blackbox AppParameters "--config.file=D:\otxopentext\sw\otwatch\prometheus_blackbox_exporter\blackbox.yml" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_blackbox DisplayName otwatch_blackbox D:\otxopentext\sw\otwatch\nssm.exe set otwatch_blackbox Description otwatch blackbox exporter for prometheus D:\otxopentext\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:\otxopentext\sw\otwatch\nssm.exe install otwatch_alertmanager "D:\otxopentext\sw\otwatch\prometheus_alertmanager\alertmanager.exe" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_alertmanager AppDirectory "D:\otxopentext\sw\otwatch\prometheus_alertmanager" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_alertmanager AppParameters "--config.file=D:\otxopentext\sw\otwatch\prometheus_alertmanager\alertmanager.yml" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_alertmanager DisplayName otwatch_alertmanager D:\otxopentext\sw\otwatch\nssm.exe set otwatch_alertmanager Description otwatch Alert Manager for prometheus D:\otxopentext\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:\otxopentext\sw\otwatch\nssm.exe install otwatch_pushgateway "D:\otxopentext\sw\otwatch\prometheus_alertmanagerpushgatewayr\alertmanagerpushgateway.exe" D:\otxopentext\sw\otwatch\nssm.exe set otwatch_pushgateway AppDirectory "D:\opentext\sw\otwatch\prometheus_pushgateway" D:\otx\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:\otxopentext\sw\otwatch\nssm.exe set otwatch_pushgateway DisplayName otwatch_pushgateway D:\otxopentext\sw\otwatch\nssm.exe set otwatch_pushgateway Description otwatch Pushgateway for prometheus D:\otxopentext\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
Code Block |
---|
echo "Installation Prometheus SNMP Exporter" D:\opentext\sw\otwatch\nssm.exe install otwatch_snmp_exporter "D:\opentext\sw\otwatch\prometheus_snmp_exporter\snmp_exporter.exe" D:\opentext\sw\otwatch\nssm.exe set otwatch_snmp_exporter AppDirectory "D:\opentext\sw\otwatch\prometheus_snmp_exporter" D:\opentext\sw\otwatch\nssm.exe set otwatch_snmp_exporter DisplayName otwatch_snmp_exporter D:\opentext\sw\otwatch\nssm.exe set otwatch_snmp_exporter Description otwatch_snmp_exporter for prometheus D:\opentext\sw\otwatch\nssm.exe set otwatch_snmp_exporter Start SERVICE_AUTO_START net start otwatch_snmp_exporter pause |