commit | aa572361124d4797b25674297bbc4cc2682030fa | [log] [tgz] |
---|---|---|
author | Szymon Dompke <szymon.dompke@intel.com> | Wed Mar 23 16:31:24 2022 +0100 |
committer | Szymon Dompke <szymon.dompke@intel.com> | Wed Mar 23 16:46:55 2022 +0100 |
tree | 577156d9caa10790687088dd9054a95066885493 | |
parent | f8ae65ca626e0328d6dfbc229f6fcf6dfed56812 [diff] |
Preserve original discrete trigger value Currently, there are no 'real' discrete sensors, so discrete trigger is working with numeric ones. Dbus api is using string as thresholdValue, but internally service is converting it to double. This resulted in side-effect of malformed value of Thresholds property, e.g., 90.0 being represented as 90.000000. This change stores original value in order to not confuse potential users. Additionally, check was added to validate whole string of thesholdValue. Now, it must consist only of numeric characters, values like '12.3FOO' will be rejected on AddTrigger call. Testing done: - UTs added and are passing, - dbus get-property on Thresholds confirms unchanged initial value. Signed-off-by: Szymon Dompke <szymon.dompke@intel.com> Change-Id: Iec3514ac1479587e610f8da31ecf9ba6fc0bdb62
This component implements middleware for sensors and metrics aggregation.
This application is implementation of Telemetry proposed in OpenBMC design docs [1]
.
It's responsible for:
[2]
,[3]
updates.[4]
There are two way to build telemetry service:
To build it using bitbake follow the guide from OpenBMC docs[5]
. To build it using meson follow the quick guide to install meson[6]
and then run below commands
meson build cd build ninja
After successful build you should be able to run telemetry binary or start unit tests
./tests/telemetry-ut ./telemetry
In case if system is missing boost dependency, it is possible to build it locally and set BOOST_ROOT environment variable to location of built files for meson. After this change meson should be able to detect boost dependency. See [7]
for more details.
More information can be found in OpenBMC docs repository [8]
.