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

Expose KVStore file system latency histograms via Prometheus

    XMLWordPrintable

Details

    • 0

    Description

      KV team has a way to publish their latency histograms to Prometheus. We should do the same for Couchstore / Magma's file system histogram (ReadTimeHisto, WriteTimeHisto).

      Relevant code to look at:

      Magma already adds its histograms in MagmaKVStore::addTimingStats which gets called for cbstats.

      We have to do similar wiring for Prometheus. KV's PrometheusStatsCollector supports taking in HdrHistogram (the superclass of all histograms) - see PrometheusStatCollector::addStat.

      KV currently pushes its own histograms in the following code path:
      EventuallyPersistentEngine::get_prometheus_stats
      EventuallyPersistentEngine::doMetricGroupHigh
      EventuallyPersistentEngine::doTimingStats.

       

      Attachments

        Issue Links

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

          Activity

            People

              owend Daniel Owen
              rohan.suri Rohan Suri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty