This is the snap for Script Exporter, a Prometheus exporter to execute scripts and collect metrics from the output or the exit status.
sudo snap install prometheus-script-exporter
Once installed, a default configuration file will be created at /etc/script-exporter.yaml
. Before starting the exporter, make sure to update this configuration file to suit your needs, consulting the official documentation.