Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48692

Per Eventing Function statistics are using the wrong API in the UI.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • Cheshire-Cat
    • eventing, UI
    • Untriaged
    • 1
    • Unknown
    • UI - 2021 - Nov, UI 2021-Dec, UI 2022-Jan

    Description

      Note, Timofey Barmin indicated that _uistats in the UI code eventing.js is an old API and there isa new ns_server range based API that should be used when we went to CC.

      The statistics in question drive the incrementing numeric counts for each deployed Eventing Function.
       

      Deployment Statistics: success      failure     timeout  
                             79713        0           0 

      Refer to the eventing.js internal function contains a POST call to _uistats (in function getDeployedStats)

                getDeployedStats: function(statsConfig) {
                  // just one sample sometimes gets nothing, so grab the last five seconds
                  return $http.post('/_uistats',
                    '[{"bucket":"' + statsConfig.metaDataBucket +
                    '","step":1,"stats":[' + statsConfig.reqstats +
                    '],"startTS":-5000,"aggregate":true}]'
                  );
                },

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pavel Pavel Blagodov
              jon.strabala Jon Strabala
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty