A simple to run and lightweight powershell script that captures live information using prometheus metrics endpoint.
To use the monitor:
Note: If you recently restarted Farmer please wait for few minutes and the metrics will show eventually
- Tip: Validate prometheus-listen-on endpoints defined in node & farmer start-up files are working correctly, use a web browser and check data is populated at endpoints - http://node-local-ip:port/metrics & http://farmer-local-ip:port/metrics
Requirements:
If using cluster, apply additional settings as below:
- add command line options -m
and -n to nats-server start-up script (example: nats-server -n my-nats-server1 -m 18080 -c nats.config) - change nats-server settings in the config.txt file so that the ip matches to the computer running nats-server and port matches to 'http listener port' as in option scpecified for -m in the nats-server start-up script
To enable web access, do the following:
- enable api in config file
- ensure to create an inbound rule under windows defender firewall for http listening port as specified in the config file. This must be done on the computer that hosts ps1 script
- must run the ps1 file as admin in powershell console
- the endpoint to use is http://ip:port/summary
Key features:
*** For questions and feedback please contact (rs_00) in autonomys discord channel.