The timestamp_registry() and timestamp_conductor_registry() functions
in header.py use direct dictionary access for the 'timestamp' field,
which raises a KeyError when the notification payload does not contain
a timestamp field.
This patch changes both functions to use .get() with appropriate
handling for missing or invalid values, consistent with how other
fields (node_uuid, instance_uuid, node_name) are already handled.
Additionally fixes:
- Typo in docstring ("Injets" -> "Injects")
- Incorrect g.labels(labels) call changed to g.labels(**labels)
Closes-Bug: #2141336
Change-Id: Ibdb1447ac1777a2722d0103fc9daae9c06e50963
Signed-off-by: Luca Del Monte <luca.delmonte5@gmail.com>
Ironic Prometheus Exporter
Ironic Prometheus Exporter is a Tool to expose hardware sensor data in the Prometheus format through an HTTP endpoint.
The hardware sensor data come from bare metal machines deployed using OpenStack Bare Metal Service (ironic).
- License: Apache License, Version 2.0
- Documentation: https://docs.openstack.org/ironic-prometheus-exporter/
- Source: https://opendev.org/openstack/ironic-prometheus-exporter
- Bugs: https://bugs.launchpad.net/ironic-prometheus-exporter/+bugs
- Release Notes: https://docs.openstack.org/releasenotes/ironic-prometheus-exporter
Description
Application capable to export hardware sensor data from Ironic nodes to a Prometheus Server.
Languages
Python
96.1%
Shell
3.9%