~jsimpso/prometheus-snmp-exporter-charm:master

Last commit made on 2022-03-01
Get this branch:
git clone -b master https://git.launchpad.net/~jsimpso/prometheus-snmp-exporter-charm
Only James Simpson can upload to this branch. If you are James Simpson please log in for upload directions.

Branch merges

Branch information

Recent commits

16b20f0... by James Simpson

Add support for building with charmcraft pack

e85b3a1... by James Simpson

Tag as focal supported, update maintainer

3ee2e1c... by Junien F

templates/snmp.yaml.j2 : add "apcups" cRT#97263

Reviewed-on: https://code.launchpad.net/~axino/prometheus-snmp-exporter-charm/+git/prometheus-snmp-exporter-charm/+merge/410407
Reviewed-by: Colin Misare <email address hidden>

a55b6d6... by Junien F

templates/snmp.yaml.j2 : add "apcups" cRT#97263

d7b71ab... by Junien F

templates/snmp.yaml.j2 : update from upstream, add servertech_sentry4, remove cisco_wlc

Reviewed-on: https://code.launchpad.net/~axino/prometheus-snmp-exporter-charm/+git/prometheus-snmp-exporter-charm/+merge/403921
Reviewed-by: Colin Misare <email address hidden>

0bc0b13... by Junien F

templates/snmp.yaml.j2 : update from upstream, add servertech_sentry4, remove cisco_wlc

Now that we have a recent snap, we can use snmp.yaml from upstream, it's
much more complete than the current one.

Also, removed cisco_wlc since we don't use it.

4d535ce... by Junien F

the "http" interface changed, so fix accordingly

Reviewed-on: https://code.launchpad.net/~axino/prometheus-snmp-exporter-charm/+git/prometheus-snmp-exporter-charm/+merge/402512
Reviewed-by: Jay Kuri <email address hidden>

3a3a91c... by Junien F

the "http" interface changed, so fix accordingly

ce6622d... by Junien F

templates/snmp.yaml.j2 : index with ifIndex instead of ifDescr

Reviewed-on: https://code.launchpad.net/~axino/prometheus-snmp-exporter-charm/+git/prometheus-snmp-exporter-charm/+merge/402460
Reviewed-by: Benjamin Allot <email address hidden>

3680f21... by Junien F

templates/snmp.yaml.j2 : index with ifIndex instead of ifDescr

When using fs.com switches with port-channels, ifDescr and ifAlias for
interfaces in the same port-channel are forced to the same value, for
example :
===
IF-MIB::ifDescr.1 = STRING: Trunk Member Port on Trunk ID 1
IF-MIB::ifDescr.2 = STRING: Trunk Member Port on Trunk ID 1

IF-MIB::ifAlias.1 = STRING: myserver
IF-MIB::ifAlias.2 = STRING: myserver
===

These values cannot be made different. As such, there will be multiple
metrics reported with the same labels, which snmp-exporter refuses to
export, it returns HTTP code 500 and a one error per metric like :

* collected metric ifAdminStatus label:<name:"ifAlias" value:"myserver" > label:<name:"ifDescr" value:"Trunk Member Port on Trunk ID 1" > untyped:<value:1 > was collected before with the same name and label values

(as it should). Switching to ifIndex resolves this issue, since ifIndex
is unique to each interface and so each set of label is unique.