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
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
# Reviewed expectation for the printer fixture (start from: go run ./testdata/gen -expect, then review).
|
|
# max_pdus_per_cycle is exact, in GET PDUs of at most 40 varbinds per interval group: a profile change that alters it fails until this file changes on purpose.
|
|
profile: printer
|
|
interfaces:
|
|
- ifname: eth0
|
|
- ifname: lo
|
|
excluded: true
|
|
series:
|
|
- ifHCInOctets{iface}
|
|
- ifHCOutOctets{iface}
|
|
- ifInErrors{iface}
|
|
- ifOutErrors{iface}
|
|
- ifInDiscards{iface}
|
|
- ifOutDiscards{iface}
|
|
- ifOperStatus{iface}
|
|
- ifAdminStatus{iface}
|
|
- sysUpTime
|
|
- hrSystemUptime
|
|
- hrProcessorLoad{component}
|
|
- hrStorageUsed{component}
|
|
- hrStorageSize{component}
|
|
- hrStorageAllocationUnits{component}
|
|
- memTotalReal
|
|
- memAvailReal
|
|
- entPhySensorValue{component}
|
|
- prtMarkerSuppliesLevel{component}
|
|
- prtMarkerSuppliesMaxCapacity{component}
|
|
- prtMarkerLifeCount{component}
|
|
- prtAlertSeverityLevel{component}
|
|
- prtInputCurrentLevel{component}
|
|
- prtInputMaxCapacity{component}
|
|
components:
|
|
entPhySensorValue:
|
|
- Temperature sensor 1
|
|
- Temperature sensor 2
|
|
hrProcessorLoad:
|
|
- "196608"
|
|
- "196609"
|
|
hrStorageAllocationUnits:
|
|
- /
|
|
- Physical memory
|
|
hrStorageSize:
|
|
- /
|
|
- Physical memory
|
|
hrStorageUsed:
|
|
- /
|
|
- Physical memory
|
|
prtAlertSeverityLevel:
|
|
- "1"
|
|
prtInputCurrentLevel:
|
|
- prtInputName 1
|
|
- prtInputName 2
|
|
prtInputMaxCapacity:
|
|
- prtInputName 1
|
|
- prtInputName 2
|
|
prtMarkerLifeCount:
|
|
- "1"
|
|
prtMarkerSuppliesLevel:
|
|
- Black Toner Cartridge
|
|
- Cyan Toner Cartridge
|
|
prtMarkerSuppliesMaxCapacity:
|
|
- Black Toner Cartridge
|
|
- Cyan Toner Cartridge
|
|
max_pdus_per_cycle:
|
|
1m: 1
|
|
5m: 1
|
|
15m: 1
|
|
walk_pdus_on_poll_path: 0
|