Skip to content

P-OPSTeam/forta-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forta exporter

Requirements

  • python 3.10.x

Installation

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

Run it

export SCANNER_ADDRESS=<fill up your scanner_address>
python3.10 exporter.py

As a service

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

Test it

curl -s localhost:9877/metric | grep forta

TODO

  • [] Build grafana dashboard
  • [] review and evaluate if more metrics needs to be implemented

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages