Configuring the Bulk Statistics Collection

This section describes how to configure the bulk statistics collection feature.

You can optimize and control the bulk statistics collection by creating the Prometheus query that you configure on the SMI Ops Center. The cumulative result of the statistics query is available in a CSV file which is created on the node where you run the query.

  1. Log in to the SMI Ops Center and run the following:

    configure 
      bulk-stats enable true 
      bulk-stats query  kpi_name 
      expression "sum(irate(kpi_name {exported_application=~\".*\",command_code=~\".*\"}[1m])>0) by (exported_application,command_code)"
            
      label  operation_name 
      exit    
      bulk-stats query   kpi_name 
      expression "(sum(rate(kpi_name[duration])) by (operation_name))" 
      label  operation_name 
      exit    

NOTES:

  • bulk-stats query kpi_name : Specify the statistics name for which you want to generate stats in bulk. For example, inbound_request_total and diameter_request_total.

    See Statistics and KPI Reference for the list of KPIs.

  • expression "sum(irate(kpi_name {exported_application=~\".*\",command_code=~\".*\"}[1m])>0) by (exported_application,command_code)" : Indicates the query format following which SMI collects the stats. For example: "sum(irate(diameter_requests_total{exported_application=~\".*\",command_code=~\".*\"}[1m])>0) by (exported_application,command_code)"

    Note

    Based on the KPI tha you specify, manipulate the query. For instance, in case of the inbound_request_total KPI, add a parameter for specifying the duration as [5m]. This means that the SMI collects the stats for the total inbound requests that are processed in 5 minutes.

  • label operation_name: Specify the operation that processes the KPI.