bmcweb: Add patch for gRPC Redfish metrics.
Add new gRPCStatistics OEM schema and implement it in
ManagerDiagnosticData handler.
This change requres grpc-redfish changes in
cl/524481965.
Refresh impacted patches.
TESTED: Built secure and insecure for Izumi. Run on Izumi BMC, query
from corp desktop using ssh tunnel. Query for ManagerDiagnosticData
and GooglegRPCStatistics. Verified ManagerDiagnosticData has entry
for GooglegRPCStatistics. Verified GooglegRPCStatistics contains
reasonable counters and latencies.
Passed Redfish Validator for URI:
/redfish/v1/Managers/bmc/ManagerDiagnosticData/Oem/Google/GooglegRPCStatistics
curl -u root@${MACHINE_NAME}-nfd01 -X GET "http://${bmc}/redfish/v1/Managers/bmc/ManagerDiagnosticData/Oem/Google/GooglegRPCStatistics"
Enter host password for user 'root@yscbg2-nfd01':
{
"@odata.id": "/redfish/v1/Managers/bmc/ManagerDiagnosticData/Oem/Google/GooglegRPCStatistics",
"@odata.type": "#GooglegRPCStatistics.v1_0_0.GooglegRPCStatistics",
"AuthenticatedCount": 16523,
"AuthenticatedFailCount": 0,
"AuthenticationLatencyMs": 4970,
"AuthorizedCount": 16523,
"AuthorizedFailCount": 0,
"HTTPMethods": [
{
"Count": 12,
"Method": 4
},
{
"Count": 16511,
"Method": 2
}
],
"HTTPResponseCodes": [
{
"Count": 16523,
"StatusCode": 200
}
],
"Id": "GooglegRPCStatistics",
"Name": "Google gRPC Statistics",
"ProcessingLatencyMs": 4771411,
"QueueLatencyMs": 48,
"RequestLatencyMs": 864,
"ResponseLatencyMs": 33317,
"gRPCInitLatencyMs": 1330,
"gRPCResponseCodes": [
{
"Count": 16523,
"StatusCode": 0
}
]
Google-Bug-Id: 273341948
Change-Id: Idaebde86f1338d92729bb26e128740a5afe56e32
Signed-off-by: Nancy Yuen <yuenn@google.com>
5 files changed