6 BSF KPIs

This section provides information about Key Performance Indicators (KPIs) used for Oracle Communications Cloud Native Core Binding Support Function (BSF).

Note:

Sample BSF dashboard for Grafana is delivered to the customer through CNC BSF Custom Templates. The metrics and functions used to achieve KPIs are covered in CNC BSF Custom Templates as well.

KPIs

The following table lists the KPIs used for various operations related to BSF:

Table 6-1 BSF KPIs

KPI Details Metric used for KPI Service Operation Response Code
The BSF Management Service Pod Count KPI measures the number of BSF pods that are available in the system. count(container_memory_usage_bytes{container='bsf-management-service',namespace=\"$namespace\"}) Not Applicable Not Applicable
The Ingress-Gateway Pod Count KPI measures the number of Ingress Gateway pods that are available in the system. count(container_memory_usage_bytes{container='ocbsf-ingress-gateway',namespace=\"$namespace\"}) Not Applicable Not Applicable
The Egress-Gateway Pod Count KPI measures the number of Egress Gateway pods that are available in the system. count(container_memory_usage_bytes{container='ocbsf-egress-gateway',namespace=\"$namespace\"}) Not Applicable Not Applicable
The Total-TPS KPI measures the rate of Ingress Gateway requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"ocbsf-ocbsf-ingress-gateway\"}[5m])) All Not Applicable
This Memory-Usage KPI measures the current memory usage in bytes. sum(container_memory_usage_bytes{image!='',namespace=\"$namespace\"}) Not Applicable Not Applicable
This Memory-Usage KPI measures the memory usage (in bytes) for the top 16 memory users by each container. topk(16,sum(container_memory_usage_bytes{image!='',namespace=\"$namespace\"}) by (container_name)) Not Applicable Not Applicable
This CPU-Usage KPI measures the number of cores that are being used by each container. sum(rate(container_cpu_usage_seconds_total{image!='',namespace=\"$namespace\",container_name!='POD'}[2m])) by (container_name) Not Applicable Not Applicable
This Binding-Registration KPI measures the rate of successful binding registration requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"POST\",status=\"201\"}[2m])) NF Register 201
This Binding-Registration KPI measures the rate of unsuccessful binding registration requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"POST\",status=\"400\"}[2m])) NF Register 400
This Binding-Deregistration KPI measures the rate of successful deregistration requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"DELETE\",status=\"204\"}[2m])) NF Deregister 204
This Binding-Deregistration KPI measures the rate of unsuccessful deregistration requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"DELETE\",status=\"404\"}[2m])) NF Deregister 404
This Binding-Discovery KPI measures the rate of successful discovery requests at BSF. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"GET\",status=\"200\"}[2m])) NF Discovery 200
This Binding-Discovery KPI measures the rate of discovery requests that have been rejected by BSF due to errors that may have occurred at NF consumer. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"GET\",status=\"404\"}[2m])) NF Discovery 404
This Binding-Discovery KPI measures the rate of discovery requests that have been stated invalid by BSF due to errors that may have occurred at NF consumer. sum (rate(http_server_requests_seconds_count{kubernetes_namespace=\"$namespace\",microservice=\"bsf-management-service\",method=\"GET\",status=\"400\"}[2m])) NF Discovery 400
This Diameter_ingress-request-response KPI measures the rate of AAR request messages sent to network NFs like AF or PCF (in case of BSF). sum (rate(ocbsf_diam_request_network_total{kubernetes_namespace=\"$namespace\",msgType=\"AAR\"}[2m])) All Not Applicable
This Diameter_ingress-request-response KPI measures the rate of AAA messages going out to network where response code in AAA is 2001, that is, Diameter_Success. sum (rate(ocbsf_diam_request_network_total{kubernetes_namespace=\"$namespace\",msgType=\"AAA\",responseCode=\"2001\"}[2m])) All 201
This Diameter_ingress-request-response KPI measures the rate of STR request messages sent to network NFs. sum (rate(ocbsf_diam_request_network_total{kubernetes_namespace=\"$namespace\",msgType=\"STR\"}[2m])) All Not Applicable
This Diameter_ingress-request-response KPI measures the rate of STA messages going out to network where response code in STA is 2001, that is, Diameter_Success. sum (rate(ocbsf_diam_request_network_total{kubernetes_namespace=\"$namespace\",msgType=\"STA\",responseCode=\"2001\"}[2m])) All 201
This Egress-Request-Response KPI measures the rate of Delete requests sent to external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_requests_total{kubernetes_namespace=\"$namespace\",Method='DELETE'}[2m])) Delete Not Applicable
This Egress-Request-Response KPI measures the rate of responses, to Delete requests (initiated at BSF), by external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_responses_total{kubernetes_namespace=\"$namespace\",Method='DELETE'}[2m])) Delete Not Applicable
This Egress-Request-Response KPI measures the rate of GET requests sent to external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_requests_total{kubernetes_namespace=\"$namespace\",Method='GET'}[2m])) GET Not Applicable
This Egress-Request-Response KPI measures the rate of responses, to GET requests (initiated at BSF), by external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_responses_total{kubernetes_namespace=\"$namespace\",Method='GET'}[2m])) GET Not Applicable
This Egress-Request-Response KPI measures the rate of POST requests sent to external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_requests_total{kubernetes_namespace=\"$namespace\",Method='POST'}[2m])) POST Not Applicable
This Egress-Request-Response KPI measures the rate of responses, to POST requests (initiated at BSF), by external NFs through Egress Gateway. sum(rate(oc_egressgateway_http_responses_total{kubernetes_namespace=\"$namespace\",Method='POST'}[2m])) POST Not Applicable
This Diameter-egress-Request-Response KPI measures the rate of Update Notify requests sent to external NFs through Egress Gateway. sum (rate(ocpm_egress_request_total{kubernetes_namespace=\"$namespace\",operation_type=\"update_notify\",servicename_3gpp=\"rx\"}[2m])) Update Notify Not Applicable
This Diameter-egress-Request-Response KPI measures the rate of Update Notify requests sent to external NFs through Egress Gateway. sum (rate(ocpm_egress_response_total{kubernetes_namespace=\"$namespace\",operation_type=\"update_notify\",servicename_3gpp=\"rx\",response_code=\"2xxx\"}[2m]))

Note:

Different microservices may have different nomenclature. For example, operation_type or operationType.
Update Notify 2xxx
This Diameter Connections KPI measures the total number of connections with network peer. sum (rate(occnp_diam_conn_network{kubernetes_namespace=\"$namespace\"}[2m])) Not Applicable Not Applicable
This Diameter Connections KPI measures the number of connections with network peer for a given application ID. sum (rate(occnp_diam_conn_app_network{kubernetes_namespace=\"$namespace\"}[2m])) Not Applicable Not Applicable