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

[CX] Change Prometheus metric type from Gauge to Counter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.0.0
    • analytics
    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 21, Analytics Sprint 22, Analytics Sprint 23, Analytics Sprint 24, Analytics Sprint 25, Analytics Sprint 26, Analytics Sprint 27, Analytics Sprint 28, Analytics Sprint 29, Analytics Sprint 32

    Description

      The following metrics need their type to be changed from "Gauge" to "Counter" as they are ever-increasing stats (can reset in case of a restart).

      • cbas_io_reads_total
      • cbas_io_writes_total
      • cbas_gc_count_total
      • cbas_gc_time_milliseconds_total
      • cbas_failed_to_parse_records_count
      • cbas_incoming_records_count

       

      Upon the change, the following needs to be tests:

      • In case of an upgrade, does this cause any issues for Prometheus where the type of the metric reported was a Gauge and now it is changed into a Counter?
      • How do visualization tools (e.g. Grafana) deal with the metric which type has changed?

      Attachments

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

        Activity

          People

            abhay.aggrawal Abhay Aggrawal
            Hussain.Towaileb Hussain Towaileb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty