charlie-haley / omada_exporter

Prometheus Exporter for TP-Link Omada Controller SDN.
MIT License
87 stars 14 forks source link

Duplicated metrics issues #67

Closed napei closed 1 year ago

napei commented 1 year ago

I'm having issues exporting from my omada instance. I have 3 sites, just pulling the Home one currently.

I'm a bit new to prometheus so not sure what this all means.

I'm running the helm chart (v0.7.1) in k3s with kube-prometheus-stack

My controller version is 5.9.31.

See below errors from opening the /metrics page. Please let me know if any more information is needed I am happy to provide anything.

Thank you 😄

Error Messages ```text An error has occurred while serving metrics: 84 error(s) occurred: * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_power_watts" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_status" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values * collected metric "omada_port_link_speed_mbps" { label: label: label: label: label: label: label: label: label: gauge: } was collected before with the same name and label values ```
charlie-haley commented 1 year ago

Hey @napei, thanks for raising this! I imagine this is because of the default values for the image in the Helm chart, they haven't been updated for a while.

Could you try setting your values to the latest tag:

image:
  tag: 0.8.2
charlie-haley commented 1 year ago

I've also just pushed an update to the Helm chart which updates the default version to the latest, let me know if you're still having trouble and I can re-open this issue. Thanks!