Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-9761

Implement endpoint to get all metrics and methods usage statistics

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Can't Do
    • Major
    • None
    • SaaS
    • Backend
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 0
    • 0% 0%

    Description

      We have a requirement to fetch the details of each metrics and methods for creating a graph which represents the usage of each endpoint/feature. We follow the below steps as of now to get the data.

      Get all endpoint metric_name for methods and metrics using this endpoint:

      https://example-admin.3scale.net/stats/applications/${appId}/summary.json?access_token=${config.threeScaleKey}&version=2.0

      Then for loop through each of the methods and get the statistics using the following endpoint:

      https://example-admin.3scale.net/stats/applications/${appId}/usage.json?access_token=${config.threeScaleKey}&metric_name=${metric.metric.system_name}&granularity=${searchInfoObj.granularity}&since=${searchInfoObj.since}&until=${searchInfoObj.until}&timezone=${timeZone}&skip_change=true
      

      Same for the metrics. This results in close to 400~ requests just to fetch the statistics of all the metrics and methods.

      We would request you to create an endpoint which will return the statistics of all endpoints in a single go so that we don't have to loop through the summary and fetch the statistics.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-eazevedo Ernani Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: