A Python-based Prometheus exporter for monitoring metrics from the GOES Receiver.
• Pulls information from such as System Info, CPU Usage, CPU Temp, Memory Usage, Disk Usage, Service Status, CPU Temp, HRIT Packets/Sec (1HR), Gain Multiplier (1HR), Frequency Offset, Omega (Samples/Symbol), Viterbi Error Corrections / Packet and eed-Solomon Errors / Second.
• Python 3.x
• requests
• prometheus_client
• time
• re
-
Clone the repository:
git clone https://github.com/jhgrazier/ -
Change into the cloned directory
cd xxx -
Install required Python requirements
pip install prometheus_client requests time re -
Copy the xxx into /usr/bin
-
Install the service files into /etc/systemd/system
- Edit the netgear-exporter.py to adjust the password.
-
Add the following job to your Prometheus configuration (adjust localhost to the correct IP if they are not running on the same machine):
- job_name: 'goes-receiver' metrics_path: '/metrics' static_configs: - targets: ['192.168.32.5:9102']
-
Enable and Start the service
-
Validate the service started
-
Run this curl command from command line on your host where prometheus is installed.
curl http://localhost:9102/metrics -
You should see something like the following: