Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Add a way to export gauge metrics and other changes. #604

Merged
merged 2 commits into from
Jun 3, 2021

Commits on Jun 3, 2021

  1. Add a way to export gauge metrics and other changes.

    = Introduce the ability to transform metrics before exporting. Currently implementing two types of transformations:
      - Add "failure" metric to EventMetrics.
      - Convert cumulative metrics to gauge metrics.
    
    = To calculate gauge metrics from cumulative metrics, we keep a "last-value" cache of EventMetrics by a key that consists of metric names and label keys and values. We subtract last EventMetrics from the new EventMetrics and export the results.
    
    = This requires implementing subtract logic through the metrics stack: from EventMetrics to individual value types. We need to also take into account that metrics may be reset.
    
    Ref: #494
    PiperOrigin-RevId: 377179096
    manugarg committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    06ee6be View commit details
    Browse the repository at this point in the history
  2. Update protobufs' Go code.

    manugarg committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    141b217 View commit details
    Browse the repository at this point in the history