SAP / e-mobility-charging-stations-simulator

OCPP-J charging stations simulator
Apache License 2.0
132 stars 53 forks source link

[FEATURE] Export simulator state as Prometheus metric #851

Open Ka0o0 opened 10 months ago

Ka0o0 commented 10 months ago

Duplicate issue

Description

Hi, it would be nice if the simulator would expose a metric endpoint that provides Prometheus scrapable metrics about the state of simulator. Some metrics I could think of are:

Overall

Per Charge Station

Per Connector

Is anything like this planned?

Attachments

No response

jerome-benoit commented 10 months ago

The UI server already expose simulator state and charging stations details through the simulatorState and listChargingStations procedure. One can write a Prometheus exporter that will transform the output from these procedures to prometheus metrics syntax.