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 creates a Prometheus Operator ScrapeConfig for it. Prometheus Operator applies the scrape config to 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
- Check that a
ScrapeConfigwas created with the same name as thePhysicalMeasurement
- Port-forward Prometheus
- Check the targets at http://localhost:9090/targets. It can take a few seconds for Prometheus Operator to apply the new scrape config.
- If you are using the local development setup with kind, Prometheus is forwarded to
localhost:19090instead.
Deleting the PhysicalMeasurement also deletes its ScrapeConfig.