Skip to content

Commit

Permalink
Bugfix: renaming tower temp to HVS Soc Diagnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-kuehl committed Aug 30, 2024
1 parent 203b0de commit 08175f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions byd_hvs_hvm_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
charge_total_counter = Counter('byd_charge_total', 'Total Charge')
discharge_total_counter = Counter('byd_discharge_total', 'Total Discharge')
tower_voltage_gauge = Gauge('byd_tower_voltage', 'Tower Voltage', ['tower'])
tower_temp_gauge = Gauge('byd_tower_temp', 'Tower Temperature', ['tower'])
tower_soc_diagnosis_gauge = Gauge('byd_tower_soc_diagnosis', 'Tower SOC Diagnosis', ['tower'])
tower_balancing_gauge = Gauge('byd_tower_balancing', 'Tower Balancing Count', ['tower'])
cell_temp_gauge = Gauge('byd_battery_cell_temp_celsius', 'Battery Cell Temperature in Celsius', ['cell_group'])
cell_voltage_gauge = Gauge('byd_battery_cell_voltage_volt', 'Battery Cell Voltage in Volts', ['cell'])
Expand Down Expand Up @@ -334,7 +334,7 @@ def update_prometheus_metrics():

# Update tower-specific metrics
tower_voltage_gauge.labels(tower="0").set(towerAttributes[0].get("batteryVolt", 0))
tower_temp_gauge.labels(tower="0").set(towerAttributes[0].get("hvsSOCDiagnosis", 0))
tower_soc_diagnosis_gauge.labels(tower="0").set(towerAttributes[0].get("hvsSOCDiagnosis", 0))
tower_balancing_gauge.labels(tower="0").set(towerAttributes[0].get("balancingcount", 0))

def main():
Expand Down

0 comments on commit 08175f1

Please sign in to comment.