Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8885

Expose option to reset (streaming) metrics individually

XMLWordPrintable

      Feature request or enhancement

      Which use case/requirement will be addressed by the proposed feature?

      During idle periods at the source, when no records are received by the connector, the lagBehindSource metric retains its old value, incorrectly indicating that the connector is lagging behind. A mechanism is needed to reset the lagBehindSource metric in such cases.  

      Currently, there is no way to reset this metric individually; only a group reset is available, which resets all metrics in StreamingMeter together. Additionally, StreamingMeter is a private variable in DefaultStreamingChangeEventSourceMetrics, making it inaccessible when extending this class.  

      (Optional) This approach can be extended to other metric objects where individual metric resets are not possible.

      Implementation ideas (optional)

      1. Provide a getter method for the StreamingMeter object.
      2. Provide a reset method for each individual metric.

              Unassigned Unassigned
              ashokcsa89 Ashok S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: