Profiles gain category/label/of/display/scale_by/sentinels/enum_state and component_attrs;
every pollable non-interface metric is annotated and an orphan test enforces it. New routes
GET /devices/{slug}/metrics, /metrics/graph and /printers; printer supply type/colour read at
discovery into device_components.attrs; printer_supply_empty alert; supply_replaced audit event;
docs/coverage.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx9FNLG2CqeBbVGGd9bFsP
16 lines
1.0 KiB
YAML
16 lines
1.0 KiB
YAML
# Provenance: mibs/UCD-SNMP-MIB (net-snmp project documentation): laLoadInt
|
|
# (1.3.6.1.4.1.2021.10.1.5, load x 100, indexed 1/5/15 minute), laNames, and
|
|
# memTotalSwap/memAvailSwap (kilobytes). Net-snmp's enterprise is 8072 but it is
|
|
# also the agent on BSDs and appliances, so Linux is matched by sysDescr.
|
|
name: linux-netsnmp
|
|
extends: generic
|
|
priority: 10
|
|
provenance: UCD-SNMP-MIB (net-snmp documentation)
|
|
match:
|
|
sysDescr: '^Linux '
|
|
metrics:
|
|
- { name: laLoadInt, oid: 1.3.6.1.4.1.2021.10.1.5, type: gauge, unit: ratio, scale: 0.01, interval: 5m, index_label: { column: laNames, as: component }, category: health, label: "Load average" }
|
|
- { name: laNames, oid: 1.3.6.1.4.1.2021.10.1.2, type: text, unit: text, interval: 15m }
|
|
- { name: memTotalSwap, oid: 1.3.6.1.4.1.2021.4.3.0, type: gauge, unit: bytes, scale: 1024, interval: 5m, category: health, label: "Swap total" }
|
|
- { name: memAvailSwap, oid: 1.3.6.1.4.1.2021.4.4.0, type: gauge, unit: bytes, scale: 1024, interval: 5m, category: health, label: "Swap available", of: memTotalSwap }
|