Use label federated_instance instead of instance #28

Merged
jeltz merged 13 commits from fix_exported_prometheus into master 2021-03-06 02:09:25 +01:00
Showing only changes of commit 21fed6ae3f - Show all commits

View file

@ -1,4 +1,6 @@
# {{ ansible_managed }} ---
{{ ansible_managed | comment }}
# TODOlist : # TODOlist :
# - Faire fonctionner le monitoring des switchs défini ici # - Faire fonctionner le monitoring des switchs défini ici
# * Configurer tous les switchs avec un compte SNMPv3 # * Configurer tous les switchs avec un compte SNMPv3
@ -77,11 +79,12 @@ eatonups:
auth: auth:
community: public community: public
procurve_switch: procurve_switch:
walk: walk:
- 1.3.6.1.2.1.31.1.1.1.10 - 1.3.6.1.2.1.31.1.1.1.10
- 1.3.6.1.2.1.31.1.1.1.6 - 1.3.6.1.2.1.31.1.1.1
- 1.3.6.1.2.1.2.2.1.2
- 1.3.6.1.2.1.31.1.1.1.18
get: get:
- 1.3.6.1.2.1.1.3.0 - 1.3.6.1.2.1.1.3.0
- 1.3.6.1.2.1.1.5.0 - 1.3.6.1.2.1.1.5.0
@ -90,36 +93,59 @@ procurve_switch:
- name: sysUpTime - name: sysUpTime
oid: 1.3.6.1.2.1.1.3 oid: 1.3.6.1.2.1.1.3
type: gauge type: gauge
help: The time (in hundredths of a second) since the network management portion help: The time (in hundredths of a second) since the network management
of the system was last re-initialized. - 1.3.6.1.2.1.1.3 portion of the system was last re-initialized. - 1.3.6.1.2.1.1.3
- name: sysName - name: sysName
oid: 1.3.6.1.2.1.1.5 oid: 1.3.6.1.2.1.1.5
type: DisplayString type: DisplayString
help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5 help: An administratively-assigned name for this managed node
- 1.3.6.1.2.1.1.5
- name: sysLocation - name: sysLocation
oid: 1.3.6.1.2.1.1.6 oid: 1.3.6.1.2.1.1.6
type: DisplayString type: DisplayString
help: The physical location of this node (e.g., 'telephone closet, 3rd floor') help: The physical location of this node (e.g., 'telephone closet, 3rd
- 1.3.6.1.2.1.1.6 floor') - 1.3.6.1.2.1.1.6
- name: ifHCOutOctets - name: ifHCOutOctets
oid: 1.3.6.1.2.1.31.1.1.1.10 oid: 1.3.6.1.2.1.31.1.1.1.10
type: counter type: counter
help: The total number of octets transmitted out of the interface, including framing help: The total number of octets transmitted out of the interface,
characters - 1.3.6.1.2.1.31.1.1.1.10 including framing characters - 1.3.6.1.2.1.31.1.1.1.10
indexes: indexes:
- labelname: ifIndex - labelname: ifIndex
type: gauge type: gauge
lookups:
- labels:
- ifIndex
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- labels:
- ifIndex
labelname: ifName
oid: 1.3.6.1.2.1.31.1.1.1.1
type: DisplayString
- name: ifHCInOctets - name: ifHCInOctets
oid: 1.3.6.1.2.1.31.1.1.1.6 oid: 1.3.6.1.2.1.31.1.1.1.6
type: counter type: counter
help: The total number of octets received on the interface, including framing help: The total number of octets received on the interface, including
characters - 1.3.6.1.2.1.31.1.1.1.6 framing characters - 1.3.6.1.2.1.31.1.1.1.6
indexes: indexes:
- labelname: ifIndex - labelname: ifIndex
type: gauge type: gauge
version: 3 lookups:
- labels:
- ifIndex
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- labels:
- ifIndex
labelname: ifName
oid: 1.3.6.1.2.1.31.1.1.1.1
type: DisplayString
version: 2
auth: auth:
username: prometheus community: "{{ snmp_switch_community }}"
ubiquiti_unifi: ubiquiti_unifi:
walk: walk:
@ -385,3 +411,4 @@ ubiquiti_unifi:
auth_protocol: SHA auth_protocol: SHA
priv_protocol: AES priv_protocol: AES
priv_password: {{ snmp_unifi_password }} priv_password: {{ snmp_unifi_password }}
...