Skip to content

Provides data as Prometheus Metric for a Kuba Wallbox.

Notifications You must be signed in to change notification settings

pbdger/keba-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keba-Prometheus image

Provides Prometheus Metric for a Keba Wallbox as container image.

How to start ?

Start your container binding the external port 8080.

docker run -d --name=kebametrics -p 8080:8080 --env wallboxName=<your wallbox ip> pbdger/keba-prometheus

Try it out.

How to get metrics ?

Open in a browser the URL with your servername and the metric port.

http://localhost:8080/metrics

Additional optional environment parameters

debug: true | false
wallboxPort: number, default is 502 

Grafana Integration

You find a default Grafana board here: https://grafana.com/grafana/dashboards/14121

Docker image

You find an image here: https://hub.docker.com/repository/docker/pbdger/keba-prometheus

Core binary usage

Mandatory

Set the mandatory environment variable (This example is Linux based);

export wallboxPort=<IP or servername of your wallbox, e.g. 192.168.08.15>

Optional

Set the optional environment variables (This example is Linux based);

export wallboxPort=<Port on which your TCP/modbus listens. Default is 502>

Call on console

keba-prometheus

How to build your own version ?

GOOS=windows GOARCH=amd64 go build -o ./bin/keba-prometheus.exe keba-prometheus.go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./bin/keba-prometheus.linux keba-prometheus.go

About

Provides data as Prometheus Metric for a Kuba Wallbox.

Resources

Stars

Watchers

Forks

Packages

No packages published