Exports Bosch SHC Values to be scrapped by Prometheus.
[ ] Code restructoring
[ ] Include Bosch CA Certificate
[ ] Add more Events
[ ] Add CLI-Args parallel to the config.yaml
as well as support for Env-Vars
[ ] Create Github Release-Action
- Install shc-prometheus-exporter
a. Option 1: Download pre-build executable for your platform from the latest release
b. Option 2: If you have already go installed, you can install it by go install github.com/zabeloliver/shc-prometheus-exporter@latest - Create a new client within your SHC according to https://github.com/BoschSmartHome/bosch-shc-api-docs/tree/master/postman
- Create a
config.yaml
with your settings:
filenames:
crt: client-cert.pem # Filename of your crt-file. Needs to be in the same folder as the executable
key: client-key.pem # Filename of your key-file. Needs to be in the same folder as the executable
shc:
ip: 169.254.127.236 # IP Address of your SHC
pollTimeout: 30 # Long-Polling Timeout
metrics:
port: 9123 # Port, where to access the metrics. For example http://localhost:9123/metrics
- Run the application
- Optional: Configure Prometheus and Grafana (Tip: Use Docker-Containers )