commit | b7b7e1b603fd9df56a72547c8048d182a001d647 | [log] [tgz] |
---|---|---|
author | Szymon Dompke <szymon.dompke@intel.com> | Thu May 19 10:15:48 2022 +0200 |
committer | Krzysztof Grobelny <krzysztof.grobelny@intel.com> | Tue Jun 07 09:39:25 2022 +0000 |
tree | 0b35a417fc1cfdde754e5583a61cfdc50291f1d1 | |
parent | 36de0563f9f05dd325cf626ac18d0af1437fbab4 [diff] |
Update Trigger Actions implementation Dbus trigger action names were modified to reflect separation of Telemetry Service from Redfish: - LogToLogService is renamed to LogToJournal, - RedfishEvent was renamed to LogToRedfishEventLog Both of those logging actions, now also include trigger id and threshold name. Threshold naming logic: - For discrete triggers, it can be specified by user, if left empty it will be changed to "{Severity} condition". - Numeric triggers have no way of naming threshold, instead its type will be converted to string, example "UpperWarning" - Discrete OnChange threshold will always be named "OnChange" Additionally, defect was found with timestamp attached to Trigger Logs: it was a steady_clock timestamp instead of system_clock. The function which was supposed to format it was also working incorrectly, and was improved to work with milliseconds. This change required major refactor of unit tests, especially for numeric threshold. Testing done: - LogToJournal action is working properly, - LogToRedfishEventLog action is working properly, - UTs are passing. Signed-off-by: Szymon Dompke <szymon.dompke@intel.com> Change-Id: Iae2490682f0e9e2a610b45fd8af5cc5e21e66f35
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]
.