]> ###2022.04.01 - Fixed build for v3.6.3 ###2022.03.29 - Bumped version to v3.6.3 ###2021.11.03 - Bumped version to v3.6.1 ###2021.07.08 - Bumped version to v3.5.1 ###2021.05.31 - Added start of Daemon on plugin installation/start of unRAID - Added option to start with custom port number ###2021.05.27 - Initial release - based on version 3.5.0 rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null|grep -v '&version;') &gitURL;/packages/&name;-&version;.tgz &md5; **Prometheus Wireguard Exporter** Is a slim plugin, that takes informations gathered from the wireguard API and provides it to a Prometheus database. Usage is not limited to Prometheus only. Data can be formated and displayed to any database or graphical node. Export URL: The URL for the exportet metrics is: 'http://YOURunRAIDIP:9586/metrics' (to use it in Prometheus add the target: 'YOURunRAIDIP:9586' to your Prometheus yaml). This Plugin is based on prometheus_wireguard_exporter from MindFlavor: https://github.com/MindFlavor/prometheus_wireguard_exporter echo if [ -z "$(pidof prometheus_wireguard_exporter)" ]; then if [ -f &plugin;/port.cfg ]; then PORT="$(cat $plugin;/port.cfg)" REGEX="^[0-9]+$" if [ -z "${PORT}" ]; then echo "---Something went wrong, the Port number is empty!---" echo "---Please make sure that you entered only the port---" echo "-----------number in your 'port.cfg' file!-----------" echo exit 1 fi if ! [[ $PORT =~ $REGEX ]] ; then echo "---Something went wrong, the Port number is not a number!---" echo "---Please make sure that you entered a valid port number----" echo "------------------in your 'port.cfg' file!------------------" echo exit 1 fi echo "----Staring prometheus_wireguard_exporter on custom port: ${PORT}-----" echo echo "/usr/bin/prometheus_wireguard_exporter -p $PORT" | at now else echo "----Staring prometheus_wireguard_exporter on default port: 9586----" echo echo "/usr/bin/prometheus_wireguard_exporter" | at now fi else echo "---Nothing to do, prometheus_wireguard_exporter already started!---" echo fi echo "------------------------------------------------" echo "---Uninstalling prometheus_wireguard_exporter---" echo "------------------------------------------------" # Remove plugin related files kill "$(pidof prometheus_wireguard_exporter)" removepkg &name;-&version; rm -rf /usr/local/emhttp/plugins/&name; rm -rf &plugin; echo echo "---------------------------------------------------------------" echo "---Uninstallation of prometheus_wireguard_exporter complete!---" echo "---------------------------------------------------------------" echo