sebbegg / vicare-exporter

Prometheus metrics exporter for viessmann installations
2 stars 3 forks source link

Metrics add #1

Open pavelsidla opened 2 years ago

pavelsidla commented 2 years ago

Hello have you got any plans to add metrics such as consumption of gas etc.?

sebbegg commented 2 years ago

See comments in https://github.com/sebbegg/vicare-exporter/pull/2 In my installation the metrics already included consumption:

> curl -s http://localhost:9101 | grep consumption | grep "# TYPE"
# TYPE heating_gas_consumption_total_day_kWh gauge
# TYPE heating_gas_consumption_heating_day_kWh gauge
# TYPE heating_power_consumption_total_day_kWh gauge
# TYPE heating_gas_consumption_dhw_day_kWh gauge

I understand that's not the case for your setup?

sebbegg commented 2 years ago

I took the opportunity to push some local changes and added some of the properties you added in your PR:

https://github.com/sebbegg/vicare-exporter/blob/3e7014895f319dd2896817560b7ba80703d9a8c0/vicare_exporter/metrics.py#L13-L24

I would like to avoid adding the pre-aggregated weekly, monthly, etc properties. This is all in v0.1.0 (there weren't "releases" before this 😉 )

pavelsidla commented 2 years ago

Hello Ive installed your script and try to use it for my Viesssmann Vidotens-100W (gas boiler) Problem was that ive missing metrics like consumption, and i dont know why, so ive started debuging your app and make some changes which makes those records available for me. The consumption metrics is probably best thing which viessmann implements to their boilers. I am trying to count how much gas i consume in corelation with outside temperature and data from netatmo installation. Also i am checking modulation of flame in my boiler and trying to implement this value in relation to heating time showed in netatmo. So if nowdays works at least gas consumption metrics for a day its enough :) You did a great job btw!