https://github.com/flightaware/piaware-exporter
Prometheus metrics exporter for PiAware
https://github.com/flightaware/piaware-exporter
Last synced: over 1 year ago
JSON representation
Prometheus metrics exporter for PiAware
- Host: GitHub
- URL: https://github.com/flightaware/piaware-exporter
- Owner: flightaware
- License: mit
- Created: 2022-04-15T21:19:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T02:13:20.000Z (about 4 years ago)
- Last Synced: 2023-04-18T10:34:09.360Z (about 3 years ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# piaware-exporter
Prometheus metrics exporter for PiAware
Exposes PiAware status information in the form of Prometheus metrics to port 9101. It polls piaware status.json for the status info.
## Usage
piaware-exporter takes in several input args to specify where to read piaware status.json, what port to expose Prometheus metrics to, and the interval to fetch piaware status.
```
python3 main.py -h
usage: main.py [-h] [--piaware_host PIAWARE_HOST] [--piaware_port PIAWARE_PORT] [--expo_port EXPO_PORT]
[--fetch_interval FETCH_INTERVAL]
optional arguments:
-h, --help show this help message and exit
--piaware_host PIAWARE_HOST
Host IP address to connect to for piaware status JSON
--piaware_port PIAWARE_PORT
Host port to connect to for piaware status JSON
--expo_port EXPO_PORT
Local port to export PiAware metrics on
--fetch_interval FETCH_INTERVAL
Interval to read piaware status
```
### Example Usage
```
python3 main.py --piaware_host 192.168.0.200 --piaware_port 8080 --expo_port 9101 --fetch_interval 15
```