What it says is, you're generating the same metric two or more times (with
identical set of labels):
devPowerStatus{entIndex="0x2101"} 1
If you hit snmp_exporter with curl you should be able to confirm whether or
not this is the case.
curl -g 'locahost:9116/snmp?target=x.x.x.x&module=foo'
If that's the case, then you need to fix your exporter config. You haven't
shown your generator.yml nor described the MIBs you're reading, but 2011 is
the enterprise ID for Huawei.
On Tuesday, 6 December 2022 at 13:23:01 UTC [email protected] wrote:
> Hi everybody, I got a problem that the entIndex "289.1" can not be parsed
> correctly。
> snmp_exporter html:
> ```
> collected metric "devPowerStatus" { label:<name:"entIndex" value:"0x2101"
> > gauge:<value:1 > } was collected before with the same name and label
> values
> ```
>
>
> snmpwalk 1.3.6.1.4.1.2011.5.25.31.1.1.18.1.6:
> ```
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.289.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.290.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.291.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.545.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.546.1 = INTEGER: 1
> SNMPv2-SMI::enterprises.2011.5.25.31.1.1.18.1.6.547.1 = INTEGER: 1
> ```
> snmp_exporter config:
> ```
> - name: devPowerStatus
> oid: 1.3.6.1.4.1.2011.5.25.31.1.1.18.1.6
> type: gauge
> help: The current state of the device power
> indexes:
> - labelname: entIndex
> type: OctetString
> implied: true
> ```
> Something maybe wrong with the indexes config, could someone help me?
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5edabf2c-3a2e-45f4-9ac7-c9daf9f9ceb3n%40googlegroups.com.