Export metrics from ASCOM devices in a form that Prometheus can scrape.
- install requirements
- connect all devices, make sure they're setup in ASCOM
- run configuration generator
# install required modules
pip3 install -r requirements.txt
# generate configuration
python ascom-config-generator.py --config config.yaml
Simply run the exporter with a port and the config you've created / edited
python ascom-exporter.py --port 8001 --config config.yaml
In your favorite browser look at the metrics endpoint. If it's local, you can use http://localhost:8001