- python 3.10.x
cd ~
git clone https://github.com/P-OPSTeam/forta-exporter.git
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10 python3-virtualenv python3.10-distutils
cd forta-exporter
virtualenv -p /usr/bin/python3.10 .venv
source .venv/bin/activate
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
pip install -r requirements.txt
export SCANNER_ADDRESS=<fill up your scanner_address>
python3.10 exporter.py
export SCANNER_ADDRESS=<fill up your scanner_address>
sudo cp forta-exporter.service /etc/systemd/system/
sudo sed -i "s/<scanner_address>/${SCANNER_ADDRESS}/g" /etc/systemd/system/forta-exporter.service
sudo sed -i "s:<home>:${HOME}:g" /etc/systemd/system/forta-exporter.service
sudo sed -i "s/<user>/${USER}/g" /etc/systemd/system/forta-exporter.service
sudo systemctl daemon-reload
sudo systemctl enable forta-exporter
sudo systemctl start forta-exporter
curl -s localhost:9877/metric | grep forta
- [] Build grafana dashboard
- [] review and evaluate if more metrics needs to be implemented