Skip to content

Commit b36583e

Browse files
authored
Merge pull request #939 from lsst-it/IT-6182_add_xups_mibs
(antu) add mibs and create ipsec job
2 parents e177f02 + 5eaa06a commit b36583e

37 files changed

+57708
-362
lines changed

fleet/lib/kube-prometheus-stack/overlays/antu/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,26 @@ prometheus:
140140
target_label: network_function
141141
- target_label: __address__
142142
replacement: prometheus-snmp-exporter.snmp-exporter:9116
143+
- job_name: blackbox-snmp-arista-tunnel
144+
metrics_path: /snmp
145+
params:
146+
module: [arista_tunnel]
147+
auth: [rubin_v2]
148+
file_sd_configs:
149+
- files:
150+
- /etc/prometheus/configmaps/sd-snmp-network/snmp-network.json
151+
relabel_configs:
152+
- source_labels: [__meta_hostname]
153+
regex: .*ipsec.*
154+
action: keep
155+
- source_labels: [__address__]
156+
target_label: __param_target
157+
- source_labels: [__meta_hostname]
158+
target_label: instance
159+
- source_labels: [__meta_network_function]
160+
target_label: network_function
161+
- target_label: __address__
162+
replacement: prometheus-snmp-exporter.snmp-exporter:9116
143163
grafana:
144164
grafana.ini:
145165
server:

fleet/lib/snmp-exporter-pre/files/snmp.yml

Lines changed: 202 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,26 @@ auths:
3737
priv_protocol: DES
3838
version: 2
3939
modules:
40+
arista_tunnel:
41+
walk:
42+
- 1.3.6.1.4.1.30065.3.34.1.1.1.1
43+
metrics:
44+
- name: aristaIpsecTunnelIfConnState
45+
oid: 1.3.6.1.4.1.30065.3.34.1.1.1.1
46+
type: gauge
47+
help: The connection state of the IPsec tunnel identified by this entry. - 1.3.6.1.4.1.30065.3.34.1.1.1.1
48+
indexes:
49+
- labelname: ifIndex
50+
type: gauge
51+
enum_values:
52+
0: unknown
53+
1: connecting
54+
2: idle
55+
3: established
56+
4: shut
57+
5: fipsUnsupported
58+
6: connected
59+
7: ikeVersionUnsupportedWithVrf
4060
if_mib:
4161
walk:
4262
- 1.3.6.1.2.1.2
@@ -1333,6 +1353,164 @@ modules:
13331353
indexes:
13341354
- labelname: ipv4InterfaceIfIndex
13351355
type: gauge
1356+
network_base:
1357+
walk:
1358+
- 1.3.6.1.2.1.25.2.3.1.2
1359+
- 1.3.6.1.2.1.25.2.3.1.3
1360+
- 1.3.6.1.2.1.25.2.3.1.5
1361+
- 1.3.6.1.2.1.25.2.3.1.6
1362+
- 1.3.6.1.2.1.25.3.3.1.2
1363+
- 1.3.6.1.4.1.9.9.48.1.1.1.2
1364+
- 1.3.6.1.4.1.9.9.48.1.1.1.5
1365+
- 1.3.6.1.4.1.9.9.48.1.1.1.6
1366+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.1
1367+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.2
1368+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.4
1369+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.5
1370+
get:
1371+
- 1.3.6.1.4.1.9.2.1.57.0
1372+
- 1.3.6.1.4.1.9.2.1.58.0
1373+
metrics:
1374+
- name: hrStorageType
1375+
oid: 1.3.6.1.2.1.25.2.3.1.2
1376+
type: OctetString
1377+
help: The type of storage represented by this entry. - 1.3.6.1.2.1.25.2.3.1.2
1378+
indexes:
1379+
- labelname: hrStorageIndex
1380+
type: gauge
1381+
- name: hrStorageDescr
1382+
oid: 1.3.6.1.2.1.25.2.3.1.3
1383+
type: DisplayString
1384+
help: A description of the type and instance of the storage described by this
1385+
entry. - 1.3.6.1.2.1.25.2.3.1.3
1386+
indexes:
1387+
- labelname: hrStorageIndex
1388+
type: gauge
1389+
- name: hrStorageSize
1390+
oid: 1.3.6.1.2.1.25.2.3.1.5
1391+
type: gauge
1392+
help: The size of the storage represented by this entry, in units of hrStorageAllocationUnits
1393+
- 1.3.6.1.2.1.25.2.3.1.5
1394+
indexes:
1395+
- labelname: hrStorageIndex
1396+
type: gauge
1397+
- name: hrStorageUsed
1398+
oid: 1.3.6.1.2.1.25.2.3.1.6
1399+
type: gauge
1400+
help: The amount of the storage represented by this entry that is allocated,
1401+
in units of hrStorageAllocationUnits. - 1.3.6.1.2.1.25.2.3.1.6
1402+
indexes:
1403+
- labelname: hrStorageIndex
1404+
type: gauge
1405+
- name: hrProcessorLoad
1406+
oid: 1.3.6.1.2.1.25.3.3.1.2
1407+
type: gauge
1408+
help: The average, over the last minute, of the percentage of time that this
1409+
processor was not idle - 1.3.6.1.2.1.25.3.3.1.2
1410+
indexes:
1411+
- labelname: hrDeviceIndex
1412+
type: gauge
1413+
- name: avgBusy1
1414+
oid: 1.3.6.1.4.1.9.2.1.57
1415+
type: gauge
1416+
help: 1 minute exponentially-decayed moving average of the CPU busy percentage.
1417+
- 1.3.6.1.4.1.9.2.1.57
1418+
- name: avgBusy5
1419+
oid: 1.3.6.1.4.1.9.2.1.58
1420+
type: gauge
1421+
help: 5 minute exponentially-decayed moving average of the CPU busy percentage.
1422+
- 1.3.6.1.4.1.9.2.1.58
1423+
- name: ciscoMemoryPoolName
1424+
oid: 1.3.6.1.4.1.9.9.48.1.1.1.2
1425+
type: DisplayString
1426+
help: A textual name assigned to the memory pool - 1.3.6.1.4.1.9.9.48.1.1.1.2
1427+
indexes:
1428+
- labelname: ciscoMemoryPoolType
1429+
type: gauge
1430+
- name: ciscoMemoryPoolUsed
1431+
oid: 1.3.6.1.4.1.9.9.48.1.1.1.5
1432+
type: gauge
1433+
help: Indicates the number of bytes from the memory pool that are currently
1434+
in use by applications on the managed device. - 1.3.6.1.4.1.9.9.48.1.1.1.5
1435+
indexes:
1436+
- labelname: ciscoMemoryPoolType
1437+
type: gauge
1438+
- name: ciscoMemoryPoolFree
1439+
oid: 1.3.6.1.4.1.9.9.48.1.1.1.6
1440+
type: gauge
1441+
help: Indicates the number of bytes from the memory pool that are currently
1442+
unused on the managed device - 1.3.6.1.4.1.9.9.48.1.1.1.6
1443+
indexes:
1444+
- labelname: ciscoMemoryPoolType
1445+
type: gauge
1446+
- name: entSensorType
1447+
oid: 1.3.6.1.4.1.9.9.91.1.1.1.1.1
1448+
type: gauge
1449+
help: This variable indicates the type of data reported by the entSensorValue
1450+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.1
1451+
indexes:
1452+
- labelname: entPhysicalIndex
1453+
type: gauge
1454+
enum_values:
1455+
1: other
1456+
2: unknown
1457+
3: voltsAC
1458+
4: voltsDC
1459+
5: amperes
1460+
6: watts
1461+
7: hertz
1462+
8: celsius
1463+
9: percentRH
1464+
10: rpm
1465+
11: cmm
1466+
12: truthvalue
1467+
13: specialEnum
1468+
- name: entSensorScale
1469+
oid: 1.3.6.1.4.1.9.9.91.1.1.1.1.2
1470+
type: gauge
1471+
help: This variable indicates the exponent to apply to sensor values reported
1472+
by entSensorValue - 1.3.6.1.4.1.9.9.91.1.1.1.1.2
1473+
indexes:
1474+
- labelname: entPhysicalIndex
1475+
type: gauge
1476+
enum_values:
1477+
1: yocto
1478+
2: zepto
1479+
3: atto
1480+
4: femto
1481+
5: pico
1482+
6: nano
1483+
7: micro
1484+
8: milli
1485+
9: units
1486+
10: kilo
1487+
11: mega
1488+
12: giga
1489+
13: tera
1490+
14: exa
1491+
15: peta
1492+
16: zetta
1493+
17: yotta
1494+
- name: entSensorValue
1495+
oid: 1.3.6.1.4.1.9.9.91.1.1.1.1.4
1496+
type: gauge
1497+
help: This variable reports the most recent measurement seen by the sensor -
1498+
1.3.6.1.4.1.9.9.91.1.1.1.1.4
1499+
indexes:
1500+
- labelname: entPhysicalIndex
1501+
type: gauge
1502+
- name: entSensorStatus
1503+
oid: 1.3.6.1.4.1.9.9.91.1.1.1.1.5
1504+
type: gauge
1505+
help: This variable indicates the present operational status of the sensor.
1506+
- 1.3.6.1.4.1.9.9.91.1.1.1.1.5
1507+
indexes:
1508+
- labelname: entPhysicalIndex
1509+
type: gauge
1510+
enum_values:
1511+
1: ok
1512+
2: unavailable
1513+
3: nonoperational
13361514
raritan:
13371515
walk:
13381516
- 1.3.6.1.4.1.13742.4.1.2.2.1.3
@@ -6507,7 +6685,7 @@ modules:
65076685
xups:
65086686
walk:
65096687
- 1.3.6.1.4.1.534.1.3.4
6510-
- 1.3.6.1.4.1.534.1.4.4
6688+
- 1.3.6.1.4.1.534.1.4
65116689
- 1.3.6.1.4.1.534.1.5.3
65126690
get:
65136691
- 1.3.6.1.4.1.534.1.2.1.0
@@ -6516,7 +6694,6 @@ modules:
65166694
- 1.3.6.1.4.1.534.1.2.4.0
65176695
- 1.3.6.1.4.1.534.1.2.5.0
65186696
- 1.3.6.1.4.1.534.1.3.1.0
6519-
- 1.3.6.1.4.1.534.1.4.2.0
65206697
- 1.3.6.1.4.1.534.1.5.1.0
65216698
- 1.3.6.1.4.1.534.1.6.1.0
65226699
metrics:
@@ -6583,10 +6760,18 @@ modules:
65836760
indexes:
65846761
- labelname: xupsInputPhase
65856762
type: gauge
6763+
- name: xupsOutputLoad
6764+
oid: 1.3.6.1.4.1.534.1.4.1
6765+
type: gauge
6766+
help: The UPS output load in percent of rated capacity. - 1.3.6.1.4.1.534.1.4.1
65866767
- name: xupsOutputFrequency
65876768
oid: 1.3.6.1.4.1.534.1.4.2
65886769
type: gauge
65896770
help: The measured UPS output frequency in tenths of Hz. - 1.3.6.1.4.1.534.1.4.2
6771+
- name: xupsOutputNumPhases
6772+
oid: 1.3.6.1.4.1.534.1.4.3
6773+
type: gauge
6774+
help: The number of metered output phases, serves as the table index. - 1.3.6.1.4.1.534.1.4.3
65906775
- name: xupsOutputPhase
65916776
oid: 1.3.6.1.4.1.534.1.4.4.1.1
65926777
type: gauge
@@ -6615,6 +6800,21 @@ modules:
66156800
indexes:
66166801
- labelname: xupsOutputPhase
66176802
type: gauge
6803+
- name: xupsOutputSource
6804+
oid: 1.3.6.1.4.1.534.1.4.5
6805+
type: gauge
6806+
help: The present source of output power - 1.3.6.1.4.1.534.1.4.5
6807+
enum_values:
6808+
1: other
6809+
2: none
6810+
3: normal
6811+
4: bypass
6812+
5: battery
6813+
6: booster
6814+
7: reducer
6815+
8: parallelCapacity
6816+
9: parallelRedundant
6817+
10: highEfficiencyMode
66186818
- name: xupsBypassFrequency
66196819
oid: 1.3.6.1.4.1.534.1.5.1
66206820
type: gauge

0 commit comments

Comments
 (0)