How to register a physical snmp device
PhysicalMeasurement does not parse MIBs. It links a concrete device IP to an existing MeasurementDevice (SNMP module/auth definition) and writes Prometheus scrape config, then reloads Prometheus.
In our First use-case (see goal.md) this corresponds to the createPDU1 and createPDU2 phases.
- Ensure a matching
MeasurementDeviceexists (seehow-to-register-an-snmp-device-type.md). - Create the PhysicalMeasurement matching the required type of PhysicalMeasurement
- Create a
physical_measurement.yamlfile
- Apply the yaml file
- Verify the new device setting
- Port-forward Prometheus
- Check that the config (http://localhost:9090/targets)
- If you are using
./dev/port-forward.sh, Prometheus is forwarded tolocalhost:19090instead. - If running the controller locally, ensure the port-forward and env vars are set so the operator can call the reload endpoint: