Add current wattage to prometheus

Hi,

I’m a newbie on Home Assistant. I started using Home Assistant to “monitor” my HomeLab. And I have a couple of TP-Link HS110 in it. I finally configured Prometheus for Home Assistant but I have trouble for “exporting” current_power_w to Prometheus metrics.

I’ve tried this:

prometheus:
  namespace: pws
  component_config_glob:
    switch.rack_*:
      override_metric: current_power_w

but seems it doesn’t work. Am I doing it wrong?