xcid / loxone-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWLoxone Prometheus Metrics Exporter
License: Do What The F*ck You Want To Public License
Loxone Prometheus Metrics Exporter
License: Do What The F*ck You Want To Public License
Function from newer version of loxone_ws.
See XciD/loxone-ws#3
Hi,
I've issues, running the docker container on a Kubernetes cluster on a raspberry pi 4.
Container start is failing with
โ kubectl logs loxone-prometheus-exporter-deployment-f7d8558d7-2t5vx
standard_init_linux.go:219: exec user process caused: exec format error
Which is a problem caused by running a AMD64 build on a ARM based system.
I've managed to create a multi arch build of the container using:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --tag "bernhardrode/loxone-prometheus-exporter":latest --push .
Feel free and try the container: https://hub.docker.com/repository/docker/bernhardrode/loxone-prometheus-exporter
I will send you an update Makefile. Maybe it is helpful for others, too.
What do you think about a more flexible config management?
I don't like to provide credentials with command line parameters. I prefer using config files or environment variables.
I like to use https://github.com/spf13/viper but it only supports POSIX compatible flags so -user
won't work anymore. You have to use --user
.
There is a possible hack to keep it compatible. You can read the flags with the standard "flags" library and import them into "pflags" that viper uses. But I don't like this approach. Like every hack it might hurt in the future.
I created a PR: #4
What are your thoughts?
Please add a license to this Github project
Thanks for this amazing piece of software. It has been working up until a few days ago when I changed my password for Loxone. I changed the password also for the exporter but since then I keep getting the following error with no idea on what is going on or how to solve this.
INFO[2022-05-20T08:39:16+02:00] Connecting to WS
INFO[2022-05-20T08:39:16+02:00] Asking for Public Key
INFO[2022-05-20T08:39:16+02:00] Starting websocket pump
INFO[2022-05-20T08:39:16+02:00] Public Key OK
INFO[2022-05-20T08:39:16+02:00] Key Exchange with Miniserver
INFO[2022-05-20T08:39:16+02:00] Key Exchange OK
INFO[2022-05-20T08:39:16+02:00] Authentication Starting
ERRO[2022-05-20T08:39:16+02:00] unexpected end of JSON input
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.