svalouch / rctmon

Pulls data from RCT Power GmbH devices for use with monitoring systems.
https://rctmon.readthedocs.io
GNU General Public License v3.0
17 stars 8 forks source link

duplicated values #29

Closed hackentrick closed 1 year ago

hackentrick commented 1 year ago

When I query rctmon with the curl command from README I get the following lines duplicated at the end of the response. I suspect this is an error.

# HELP rctmon_bms_info_info Information about the battery management system (BMS)
# TYPE rctmon_bms_info_info gauge
rctmon_bms_info_info{inverter="PS 10.0 NCA3",serial_number="xxxxxxxxxxxxxxxxxx"} xxxx
# HELP rctmon_battery_state_of_charge_min_percent Battery minimum state of charge
# TYPE rctmon_battery_state_of_charge_min_percent gauge
rctmon_battery_state_of_charge_min_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_voltage Battery Voltage
# TYPE rctmon_battery_voltage gauge
rctmon_battery_voltage{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_power Battery Power
# TYPE rctmon_battery_power gauge
rctmon_battery_power{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state Battery state machine state
# TYPE rctmon_battery_state gauge
rctmon_battery_state{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_charge_target_percent Battery target state of charge
# TYPE rctmon_battery_state_of_charge_target_percent gauge
rctmon_battery_state_of_charge_target_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_charge_percent Battery state of charge
# TYPE rctmon_battery_state_of_charge_percent gauge
rctmon_battery_state_of_charge_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_health_percent Battery state of health
# TYPE rctmon_battery_state_of_health_percent gauge
rctmon_battery_state_of_health_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_temperature Battery temperature
# TYPE rctmon_battery_temperature gauge
rctmon_battery_temperature{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_bat_status Battery status
# TYPE rctmon_battery_bat_status gauge
rctmon_battery_bat_status{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_impedance_fine Battery impedance (fine)
# TYPE rctmon_battery_impedance_fine gauge
rctmon_battery_impedance_fine{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_discharge_amp_hours_total Battery cumulative discharge
# TYPE rctmon_battery_discharge_amp_hours_total counter
rctmon_battery_discharge_amp_hours_total{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_stored_energy_total Battery cumulative stored energy
# TYPE rctmon_battery_stored_energy_total counter
rctmon_battery_stored_energy_total{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
poggenpower commented 1 year ago

Hi,

Can you outline what you see double? For me this looks good.

Bye Thomas

On 26 November 2022 09:40:04 CET, hackentrick @.***> wrote:

When I query rctmon with the curl command from README I get the following lines duplicated at the end of the response. I suspect this is an error.

# HELP rctmon_bms_info_info Information about the battery management system (BMS)
# TYPE rctmon_bms_info_info gauge
rctmon_bms_info_info{inverter="PS 10.0 NCA3",serial_number="xxxxxxxxxxxxxxxxxx"} xxxx
# HELP rctmon_battery_state_of_charge_min_percent Battery minimum state of charge
# TYPE rctmon_battery_state_of_charge_min_percent gauge
rctmon_battery_state_of_charge_min_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_voltage Battery Voltage
# TYPE rctmon_battery_voltage gauge
rctmon_battery_voltage{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_power Battery Power
# TYPE rctmon_battery_power gauge
rctmon_battery_power{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state Battery state machine state
# TYPE rctmon_battery_state gauge
rctmon_battery_state{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_charge_target_percent Battery target state of charge
# TYPE rctmon_battery_state_of_charge_target_percent gauge
rctmon_battery_state_of_charge_target_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_charge_percent Battery state of charge
# TYPE rctmon_battery_state_of_charge_percent gauge
rctmon_battery_state_of_charge_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_state_of_health_percent Battery state of health
# TYPE rctmon_battery_state_of_health_percent gauge
rctmon_battery_state_of_health_percent{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_temperature Battery temperature
# TYPE rctmon_battery_temperature gauge
rctmon_battery_temperature{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_bat_status Battery status
# TYPE rctmon_battery_bat_status gauge
rctmon_battery_bat_status{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_impedance_fine Battery impedance (fine)
# TYPE rctmon_battery_impedance_fine gauge
rctmon_battery_impedance_fine{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_discharge_amp_hours_total Battery cumulative discharge
# TYPE rctmon_battery_discharge_amp_hours_total counter
rctmon_battery_discharge_amp_hours_total{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx
# HELP rctmon_battery_stored_energy_total Battery cumulative stored energy
# TYPE rctmon_battery_stored_energy_total counter
rctmon_battery_stored_energy_total{inverter="PS 10.0 NCA3"} xxxxxxxxxxxxxxxxxx

-- Reply to this email directly or view it on GitHub: https://github.com/svalouch/rctmon/issues/29 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

hackentrick commented 1 year ago

Hi Thomas, the lines I posted appear twice.

Here is the complete output:

$ curl localhost:9831/metrics
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 138.0
python_gc_objects_collected_total{generation="1"} 0.0
python_gc_objects_collected_total{generation="2"} 289.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 131.0
python_gc_collections_total{generation="1"} 11.0
python_gc_collections_total{generation="2"} 1.0
# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="10",patchlevel="8",version="3.10.8"} 1.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 5.0348032e+07
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 3.4070528e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.66940653651e+09
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 239.51
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 8.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP rctmon_bytes_received_total Amount of bytes received since the start of the application
# TYPE rctmon_bytes_received_total counter
rctmon_bytes_received_total 6.772108e+06
# HELP rctmon_bytes_received_created Amount of bytes received since the start of the application
# TYPE rctmon_bytes_received_created gauge
rctmon_bytes_received_created 1.6694065382508664e+09
# HELP rctmon_bytes_sent_total Amount of bytes sent since the start of the application
# TYPE rctmon_bytes_sent_total counter
rctmon_bytes_sent_total 3.263603e+06
# HELP rctmon_bytes_sent_created Amount of bytes sent since the start of the application
# TYPE rctmon_bytes_sent_created gauge
rctmon_bytes_sent_created 1.6694065382509115e+09
# HELP rctmon_decode_error_total Amount of times the decoding of data failed
# TYPE rctmon_decode_error_total counter
rctmon_decode_error_total{kind="crc"} 8525.0
rctmon_decode_error_total{kind="command"} 2544.0
rctmon_decode_error_total{kind="payload"} 1751.0
rctmon_decode_error_total{kind="length"} 138.0
# HELP rctmon_decode_error_created Amount of times the decoding of data failed
# TYPE rctmon_decode_error_created gauge
rctmon_decode_error_created{kind="crc"} 1.6694065404271135e+09
rctmon_decode_error_created{kind="command"} 1.6694065404284434e+09
rctmon_decode_error_created{kind="payload"} 1.6694065816718729e+09
rctmon_decode_error_created{kind="length"} 1.6694071396059163e+09
# HELP rctmon_device_up Whether the connection to the device is established
# TYPE rctmon_device_up gauge
rctmon_device_up 1.0
# HELP rctmon_frames_lost_total Amount of frames that were sent but not received in time
# TYPE rctmon_frames_lost_total counter
# HELP rctmon_frames_received_total Amount of frames received since the start of the application
# TYPE rctmon_frames_received_total counter
rctmon_frames_received_total 465790.0
# HELP rctmon_frames_received_created Amount of frames received since the start of the application
# TYPE rctmon_frames_received_created gauge
rctmon_frames_received_created 1.6694065382510123e+09
# HELP rctmon_frames_sent_total Amount of frames sent since the start of the application
# TYPE rctmon_frames_sent_total counter
rctmon_frames_sent_total 361520.0
# HELP rctmon_frames_sent_created Amount of frames sent since the start of the application
# TYPE rctmon_frames_sent_created gauge
rctmon_frames_sent_created 1.669406538251033e+09
# HELP rctmon_info Information about the application
# TYPE rctmon_info gauge
rctmon_info{version="0.0.1",version_major="0",version_minor="0",version_patch="1"} 1.0
# HELP rctmon_inventory Shows attached components
# TYPE rctmon_inventory gauge
rctmon_inventory{component="generator_a",inverter="PS 10.0 NCA3"} 1.0
rctmon_inventory{component="generator_b",inverter="PS 10.0 NCA3"} 1.0
rctmon_inventory{component="power_switch",inverter="PS 10.0 NCA3"} 1.0
# HELP rctmon_inverter_info Information about the inverter
# TYPE rctmon_inverter_info gauge
rctmon_inverter_info{control_software_version="xxxxxxxxxxxxxxxxxxx"} 1.0
# HELP rctmon_generator_voltage_volt Solar generator voltage
# TYPE rctmon_generator_voltage_volt gauge
rctmon_generator_voltage_volt{generator="a",inverter="PS 10.0 NCA3"} 87.4158935546875
rctmon_generator_voltage_volt{generator="b",inverter="PS 10.0 NCA3"} 81.5198974609375
# HELP rctmon_generator_power_watt Solar generator power
# TYPE rctmon_generator_power_watt gauge
rctmon_generator_power_watt{generator="a",inverter="PS 10.0 NCA3"} 5.605193857299268e-45
rctmon_generator_power_watt{generator="b",inverter="PS 10.0 NCA3"} 5.605193857299268e-45
# HELP rctmon_generator_mpp_target_voltage_volt Target voltage of MPP tracker
# TYPE rctmon_generator_mpp_target_voltage_volt gauge
rctmon_generator_mpp_target_voltage_volt{generator="a",inverter="PS 10.0 NCA3"} 77.4773178100586
rctmon_generator_mpp_target_voltage_volt{generator="b",inverter="PS 10.0 NCA3"} 71.51764678955078
# HELP rctmon_generator_mpp_search_step_volt MPP search step
# TYPE rctmon_generator_mpp_search_step_volt gauge
rctmon_generator_mpp_search_step_volt{generator="a",inverter="PS 10.0 NCA3"} 10.0
rctmon_generator_mpp_search_step_volt{generator="b",inverter="PS 10.0 NCA3"} -10.0
# HELP rctmon_temperature Temperature values in °C
# TYPE rctmon_temperature gauge
rctmon_temperature{inverter="PS 10.0 NCA3",sensor="heatsink"} 20.359582901000977
rctmon_temperature{inverter="PS 10.0 NCA3",sensor="heatsink_battery_actuator"} 20.348072052001953
rctmon_temperature{inverter="PS 10.0 NCA3",sensor="core"} 27.80487823486328
# HELP rctmon_inverter_status Status of the inverter
# TYPE rctmon_inverter_status gauge
rctmon_inverter_status{inverter="PS 10.0 NCA3"} 6.0
# HELP rctmon_inverter_grid_separated Status of the island mode
# TYPE rctmon_inverter_grid_separated gauge
rctmon_inverter_grid_separated{inverter="PS 10.0 NCA3"} 2.0
# HELP rctmon_inverter_insulation Insulation in Ohm
# TYPE rctmon_inverter_insulation gauge
rctmon_inverter_insulation{inverter="PS 10.0 NCA3",unit="total"} 803769.5625
rctmon_inverter_insulation{inverter="PS 10.0 NCA3",unit="positive"} 2.01975375e+06
rctmon_inverter_insulation{inverter="PS 10.0 NCA3",unit="negative"} 1.335063875e+06
# HELP rctmon_inverter_faults Fault registers
# TYPE rctmon_inverter_faults gauge
rctmon_inverter_faults{inverter="PS 10.0 NCA3",register="0"} 0.0
rctmon_inverter_faults{inverter="PS 10.0 NCA3",register="1"} 0.0
rctmon_inverter_faults{inverter="PS 10.0 NCA3",register="2"} 0.0
rctmon_inverter_faults{inverter="PS 10.0 NCA3",register="3"} 0.0
# HELP rctmon_household_load Household load (sum over phases)
# TYPE rctmon_household_load gauge
rctmon_household_load{inverter="PS 10.0 NCA3"} 1689.49658203125
# HELP rctmon_household_load_phase Household load by phase
# TYPE rctmon_household_load_phase gauge
rctmon_household_load_phase{inverter="PS 10.0 NCA3",phase="l1"} 1386.773193359375
rctmon_household_load_phase{inverter="PS 10.0 NCA3",phase="l2"} 101.77925109863281
rctmon_household_load_phase{inverter="PS 10.0 NCA3",phase="l3"} 204.16851806640625
# HELP rctmon_grid_power_watt Power to or from the grid by phase
# TYPE rctmon_grid_power_watt gauge
rctmon_grid_power_watt{inverter="PS 10.0 NCA3",phase="l1"} 1374.4984130859375
rctmon_grid_power_watt{inverter="PS 10.0 NCA3",phase="l2"} 102.08255004882812
rctmon_grid_power_watt{inverter="PS 10.0 NCA3",phase="l3"} 204.51170349121094
# HELP rctmon_grid_voltage_volt Grid voltage by phase
# TYPE rctmon_grid_voltage_volt gauge
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l1"} 231.37362670898438
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l2"} 236.26693725585938
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l3"} 236.00613403320312
# HELP rctmon_grid_voltage_phase_to_phase_volt Grid voltage phase to phase
# TYPE rctmon_grid_voltage_phase_to_phase_volt gauge
# HELP rctmon_grid_frequency_hertz Grid frequency
# TYPE rctmon_grid_frequency_hertz gauge
# HELP rctmon_energy_ac_sum Total inverter energy in Wh
# TYPE rctmon_energy_ac_sum gauge
rctmon_energy_ac_sum{inverter="PS 10.0 NCA3"} 2.08593e+07
# HELP rctmon_energy_household_sum Total household energy in Wh
# TYPE rctmon_energy_household_sum gauge
rctmon_energy_household_sum{inverter="PS 10.0 NCA3"} 2.0516908e+07
# HELP rctmon_energy_grid_load_sum Total grid load energy in Wh
# TYPE rctmon_energy_grid_load_sum gauge
rctmon_energy_grid_load_sum{inverter="PS 10.0 NCA3"} 1.3474908e+07
# HELP rctmon_energy_grid_feed_sum Total grid feed energy in Wh
# TYPE rctmon_energy_grid_feed_sum gauge
rctmon_energy_grid_feed_sum{inverter="PS 10.0 NCA3"} -13817108.0
# HELP rctmon_energy_solar_generator_sum Total solar generator energy in Wh
# TYPE rctmon_energy_solar_generator_sum gauge
rctmon_energy_solar_generator_sum{component="generator_a",inverter="PS 10.0 NCA3"} 1.1261948e+07
rctmon_energy_solar_generator_sum{component="generator_b",inverter="PS 10.0 NCA3"} 1.037046e+07
# HELP rctmon_powerswitch_info Information about the Power Switch
# TYPE rctmon_powerswitch_info gauge
rctmon_powerswitch_info{bootloader_version="xxxxxxxxxxxxxxxxxxxxxxxxxx"} 1.0
# HELP rctmon_grid_voltage_volt Grid voltage by phase
# TYPE rctmon_grid_voltage_volt gauge
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l1"} 232.0
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l2"} 236.0
rctmon_grid_voltage_volt{inverter="PS 10.0 NCA3",phase="l3"} 235.0
# HELP rctmon_grid_frequency_hertz Grid frequency by phase
# TYPE rctmon_grid_frequency_hertz gauge
rctmon_grid_frequency_hertz{inverter="PS 10.0 NCA3",phase="l1"} 49.98999786376953
rctmon_grid_frequency_hertz{inverter="PS 10.0 NCA3",phase="l2"} 49.96999740600586
rctmon_grid_frequency_hertz{inverter="PS 10.0 NCA3",phase="l3"} 49.91999816894531
# HELP rctmon_powerstorage_frequency_hertz Power Storage frequency by phase
# TYPE rctmon_powerstorage_frequency_hertz gauge
rctmon_powerstorage_frequency_hertz{inverter="PS 10.0 NCA3",phase="l1"} 0.0
rctmon_powerstorage_frequency_hertz{inverter="PS 10.0 NCA3",phase="l2"} 0.0
rctmon_powerstorage_frequency_hertz{inverter="PS 10.0 NCA3",phase="l3"} 0.0
# HELP rctmon_bms_info_info Information about the battery management system (BMS)
# TYPE rctmon_bms_info_info gauge
rctmon_bms_info_info{inverter="PS 10.0 NCA3",serial_number="abcdefghijklmn"} 1.0
# HELP rctmon_battery_state_of_charge_min_percent Battery minimum state of charge
# TYPE rctmon_battery_state_of_charge_min_percent gauge
rctmon_battery_state_of_charge_min_percent{inverter="PS 10.0 NCA3"} 0.07000000029802322
# HELP rctmon_battery_voltage Battery Voltage
# TYPE rctmon_battery_voltage gauge
rctmon_battery_voltage{inverter="PS 10.0 NCA3"} 386.5335388183594
# HELP rctmon_battery_power Battery Power
# TYPE rctmon_battery_power gauge
rctmon_battery_power{inverter="PS 10.0 NCA3"} 10.882640838623047
# HELP rctmon_battery_state Battery state machine state
# TYPE rctmon_battery_state gauge
rctmon_battery_state{inverter="PS 10.0 NCA3"} 3.0
# HELP rctmon_battery_state_of_charge_target_percent Battery target state of charge
# TYPE rctmon_battery_state_of_charge_target_percent gauge
rctmon_battery_state_of_charge_target_percent{inverter="PS 10.0 NCA3"} 0.9700000286102295
# HELP rctmon_battery_state_of_charge_percent Battery state of charge
# TYPE rctmon_battery_state_of_charge_percent gauge
rctmon_battery_state_of_charge_percent{inverter="PS 10.0 NCA3"} 0.06527280807495117
# HELP rctmon_battery_state_of_health_percent Battery state of health
# TYPE rctmon_battery_state_of_health_percent gauge
rctmon_battery_state_of_health_percent{inverter="PS 10.0 NCA3"} 1.0
# HELP rctmon_battery_temperature Battery temperature
# TYPE rctmon_battery_temperature gauge
rctmon_battery_temperature{inverter="PS 10.0 NCA3"} 20.983333587646484
# HELP rctmon_battery_bat_status Battery status
# TYPE rctmon_battery_bat_status gauge
rctmon_battery_bat_status{inverter="PS 10.0 NCA3"} 0.0
# HELP rctmon_battery_impedance_fine Battery impedance (fine)
# TYPE rctmon_battery_impedance_fine gauge
rctmon_battery_impedance_fine{inverter="PS 10.0 NCA3"} 0.3662233054637909
# HELP rctmon_battery_discharge_amp_hours_total Battery cumulative discharge
# TYPE rctmon_battery_discharge_amp_hours_total counter
rctmon_battery_discharge_amp_hours_total{inverter="PS 10.0 NCA3"} 7402.4912109375
# HELP rctmon_battery_stored_energy_total Battery cumulative stored energy
# TYPE rctmon_battery_stored_energy_total counter
rctmon_battery_stored_energy_total{inverter="PS 10.0 NCA3"} 3.11347675e+06
# HELP rctmon_bms_info_info Information about the battery management system (BMS)
# TYPE rctmon_bms_info_info gauge
rctmon_bms_info_info{inverter="PS 10.0 NCA3",serial_number="abcdefghijklmn"} 1.0
# HELP rctmon_battery_state_of_charge_min_percent Battery minimum state of charge
# TYPE rctmon_battery_state_of_charge_min_percent gauge
rctmon_battery_state_of_charge_min_percent{inverter="PS 10.0 NCA3"} 0.07000000029802322
# HELP rctmon_battery_voltage Battery Voltage
# TYPE rctmon_battery_voltage gauge
rctmon_battery_voltage{inverter="PS 10.0 NCA3"} 386.5335388183594
# HELP rctmon_battery_power Battery Power
# TYPE rctmon_battery_power gauge
rctmon_battery_power{inverter="PS 10.0 NCA3"} 10.882640838623047
# HELP rctmon_battery_state Battery state machine state
# TYPE rctmon_battery_state gauge
rctmon_battery_state{inverter="PS 10.0 NCA3"} 3.0
# HELP rctmon_battery_state_of_charge_target_percent Battery target state of charge
# TYPE rctmon_battery_state_of_charge_target_percent gauge
rctmon_battery_state_of_charge_target_percent{inverter="PS 10.0 NCA3"} 0.9700000286102295
# HELP rctmon_battery_state_of_charge_percent Battery state of charge
# TYPE rctmon_battery_state_of_charge_percent gauge
rctmon_battery_state_of_charge_percent{inverter="PS 10.0 NCA3"} 0.06527280807495117
# HELP rctmon_battery_state_of_health_percent Battery state of health
# TYPE rctmon_battery_state_of_health_percent gauge
rctmon_battery_state_of_health_percent{inverter="PS 10.0 NCA3"} 1.0
# HELP rctmon_battery_temperature Battery temperature
# TYPE rctmon_battery_temperature gauge
rctmon_battery_temperature{inverter="PS 10.0 NCA3"} 20.983333587646484
# HELP rctmon_battery_bat_status Battery status
# TYPE rctmon_battery_bat_status gauge
rctmon_battery_bat_status{inverter="PS 10.0 NCA3"} 0.0
# HELP rctmon_battery_impedance_fine Battery impedance (fine)
# TYPE rctmon_battery_impedance_fine gauge
rctmon_battery_impedance_fine{inverter="PS 10.0 NCA3"} 0.3662233054637909
# HELP rctmon_battery_discharge_amp_hours_total Battery cumulative discharge
# TYPE rctmon_battery_discharge_amp_hours_total counter
rctmon_battery_discharge_amp_hours_total{inverter="PS 10.0 NCA3"} 7402.4912109375
# HELP rctmon_battery_stored_energy_total Battery cumulative stored energy
# TYPE rctmon_battery_stored_energy_total counter
rctmon_battery_stored_energy_total{inverter="PS 10.0 NCA3"} 3.11347675e+06

Thanks, Alex

poggenpower commented 1 year ago

Hi Alex,

Oh yes just checked mine and found the same. I am fetching the metrics via prometheus and prometheus seems to ignore it. May be the issue is related to: https://github.com/svalouch/rctmon/pull/25 Bye Thomas

sfudeus commented 1 year ago

I don't think this is related to #25, since this was because of very specific semantic error. The duplication looks strange, I saw it in my output as well (with my changes already applied). I'll dig into it.