-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some labels on index are wrong #505
Comments
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
I'm surprised of your response. |
There's insufficient information presented to indicate a bug, in particular no snmpwalk to indicate that the data had got mangled somehow. |
According to the generator, the snmp.yml is wrong. generator.yml:modules:
bigip:
walk:
- ltmPoolMemberStatTotRequests snmp.yml:bigip:
walk:
- 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
metrics:
- name: ltmPoolMemberStatTotRequests
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
type: counter
help: The total number of requests going through the specified pool member. -
1.3.6.1.4.1.3375.2.2.5.4.3.1.19
indexes:
- labelname: ltmPoolMemberStatPoolName
type: DisplayString
- labelname: ltmPoolMemberStatNodeName
type: DisplayString
- labelname: ltmPoolMemberStatPort
type: gauge |
Tks,
But my problem is the same :
Some ltmPoolMemberStatPoolName are not correct.
Like :
```
ltmPoolMemberStatTotRequests{ltmPoolMemberStatNodeName="/PART_UO0/node-wal-weya0797-10.154.20.165",ltmPoolMemberStatPoolName="/PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-dfd8a5e7",ltmPoolMemberStatPort="11211"} 0
ltmPoolMemberStatTotRequests{ltmPoolMemberStatNodeName="/PART_UO0/node-wal-weya0800-10.154.20.175",ltmPoolMemberStatPoolName="/PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-ea139fd3",ltmPoolMemberStatPort="11211"} 0
```
```
snmpwalk -c public -v 2c -On werv0001.admin.net.intra.laposte.fr F5-BIGIP-LOCAL-MIB::ltmPoolMemberStatPoolName | grep wal | grep 11211
.1.3.6.1.4.1.3375.2.2.5.4.3.1.1.56.47.80.65.82.84.95.85.79.48.47.112.111.111.108.45.112.114.100.45.119.97.108.45.49.48.46.49.53.52.46.49.50.48.46.49.50.57.45.116.99.112.45.49.49.50.49.49.45.100.102.100.56.97.53.101.55.41.47.80.65.82.84.95.85.79.48.47.110.111.100.101.45.119.97.108.45.119.101.121.97.48.55.57.55.45.49.48.46.49.53.52.46.50.48.46.49.54.53.11211 = STRING: /PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-to-11211
.1.3.6.1.4.1.3375.2.2.5.4.3.1.1.56.47.80.65.82.84.95.85.79.48.47.112.111.111.108.45.112.114.100.45.119.97.108.45.49.48.46.49.53.52.46.49.50.48.46.49.50.57.45.116.99.112.45.49.49.50.49.49.45.101.97.49.51.57.102.100.51.41.47.80.65.82.84.95.85.79.48.47.110.111.100.101.45.119.97.108.45.119.101.121.97.48.56.48.48.45.49.48.46.49.53.52.46.50.48.46.49.55.53.11211 = STRING: /PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-to-11211
```
De : Ben Kochie [mailto:notifications@github.com]
Envoyé : mardi 21 avril 2020 15:17
À : prometheus/snmp_exporter <snmp_exporter@noreply.github.com>
Cc : DELBOT Alain <alain.delbot@laposte.fr>; Author <author@noreply.github.com>
Objet : Re: [prometheus/snmp_exporter] Some labels on index are wrong (#505)
According to the generator, the snmp.yml is wrong.
generator.yml:
modules:
bigip:
walk:
- ltmPoolMemberStatTotRequests
snmp.yml:
bigip:
walk:
- 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
metrics:
- name: ltmPoolMemberStatTotRequests
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
type: counter
help: The total number of requests going through the specified pool member. -
1.3.6.1.4.1.3375.2.2.5.4.3.1.19
indexes:
- labelname: ltmPoolMemberStatPoolName
type: DisplayString
- labelname: ltmPoolMemberStatNodeName
type: DisplayString
- labelname: ltmPoolMemberStatPort
type: gauge
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#505 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPEKTG5B4PO7V7SXSMWH5DRNWME3ANCNFSM4MNDQSFQ>.
Post-scriptum La Poste
Ce message est confidentiel. Sous reserve de tout accord conclu par
ecrit entre vous et La Poste, son contenu ne represente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee prealablement. Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement
l'expediteur.
|
snmp_exporter
Results snmpwalk -c public -v 2c -On xxxxxxx F5-BIGIP-LOCAL-MIB::ltmPoolMemberStatPoolName | grep wal | grep 11211 .1.3.6.1.4.1.3375.2.2.5.4.3.1.1.56.47.80.65.82.84.95.85.79.48.47.112.111.111.108.45.112.114.100.45.119.97.108.45.49.48.46.49.53.52.46.49.50.48.46.49.50.57.45.116.99.112.45.49.49.50.49.49.45.100.102.100.56.97.53.101.55.41.47.80.65.82.84.95.85.79.48.47.110.111.100.101.45.119.97.108.45.119.101.121.97.48.55.57.55.45.49.48.46.49.53.52.46.50.48.46.49.54.53.11211 = STRING: /PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-to-11211 |
Your What do you get for this:
|
Yes I want to have 2 index (ltmPoolMemberStatPoolName and tmPoolMemberStatNodeName). The snmpwalk is an exemple to display that ltmPoolMemberStatPoolName is correct in snmpwalk and wrong in snmp_exporter |
Ok, I think I've figured out what's going wrong here. It also looks like a device bug. It has different data in the index In order to work around this device bug, we need to do a lookup. generator.ymlmodules:
bigip:
walk:
- ltmPoolMemberStatPoolName
- ltmPoolMemberStatTotRequests
lookups:
- source_indexes:
- ltmPoolMemberStatPoolName
- ltmPoolMemberStatNodeName
- ltmPoolMemberStatPort
lookup: 1.3.6.1.4.1.3375.2.2.5.4.3.1.1 snmp.yml# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
bigip:
walk:
- 1.3.6.1.4.1.3375.2.2.5.4.3.1.1
- 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
metrics:
- name: ltmPoolMemberStatPoolName
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.1
type: DisplayString
help: The name of a pool. - 1.3.6.1.4.1.3375.2.2.5.4.3.1.1
indexes:
- labelname: ltmPoolMemberStatPoolName
type: DisplayString
- labelname: ltmPoolMemberStatNodeName
type: DisplayString
- labelname: ltmPoolMemberStatPort
type: gauge
lookups:
- labels:
- ltmPoolMemberStatPoolName
- ltmPoolMemberStatNodeName
- ltmPoolMemberStatPort
labelname: ltmPoolMemberStatPoolName
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.1
type: DisplayString
- name: ltmPoolMemberStatTotRequests
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.19
type: counter
help: The total number of requests going through the specified pool member. -
1.3.6.1.4.1.3375.2.2.5.4.3.1.19
indexes:
- labelname: ltmPoolMemberStatPoolName
type: DisplayString
- labelname: ltmPoolMemberStatNodeName
type: DisplayString
- labelname: ltmPoolMemberStatPort
type: gauge
lookups:
- labels:
- ltmPoolMemberStatPoolName
- ltmPoolMemberStatNodeName
- ltmPoolMemberStatPort
labelname: ltmPoolMemberStatPoolName
oid: 1.3.6.1.4.1.3375.2.2.5.4.3.1.1
type: DisplayString |
That's normal. ifIndex for example. |
tks to all. |
Host operating system: output of
uname -a
Linux weya0059.net.intra.laposte.fr 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
snmp_exporter version: output of
snmp_exporter -version
0.17.0
What device/snmpwalk OID are you using?
If this is a new device, please link to the MIB(s).
BIGIP
What did you do that produced an error?
The name of ltmPoolMemberStatPoolName is wrong in some case
What did you expect to see?
ltmPoolMemberStatTotRequests{ltmPoolMemberStatNodeName="/PART_UO0/node-wal-weya0797-10.154.20.165",ltmPoolMemberStatPoolName="/PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-to-11211"}
What did you see instead?
ltmPoolMemberStatTotRequests{ltmPoolMemberStatNodeName="/PART_UO0/node-wal-weya0797-10.154.20.165",ltmPoolMemberStatPoolName="/PART_UO0/pool-prd-wal-10.154.120.129-tcp-11211-dfd8a5e7"}
The text was updated successfully, but these errors were encountered: