Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Rewrite stats exporters to use Metrics instead of Stats (ViewData) #257

Open

Description

@mayurkale22

The plan is to use Metric data model to transform data from Stats API (Stats data models to Metric data models handled by MetricUtils class) and Gauge APIs using Metric Producer Manager.

  • Rewrite/update Stackdriver stats exporter.
  • Rewrite/update Prometheus stats exporter.

Way to translate Stats data model to the Metrics.

  • MetricPoint
    • MetricDescriptor
      • Name <- ViewData.View.name
      • Description <- ViewData.View.description
      • Unit <- ViewData.View.Measure.unit
      • Type <- Cumulative (except LastValue which is GAUGE)
    • TimeSeries
      • Labels <- {ViewData.rows, ViewData.View.columns}
  • CumulativePoint
    • Value <- ViewData.AggregationData.value (for DistributionValue the bucket_bounds are defined in the ViewData.View.DistributionAggregation.bucket_bounds)
    • Start_time <- ViewData.start_time
    • End_time <- ViewData.end_time

Follow-up of #253

Equivalent change in Java: census-instrumentation/opencensus-java#1501.

Activity

  1. added this to the Release 0.0.9 milestone on Dec 28, 2018
  2. mayurkale22 commented on Jan 17, 2019

    @mayurkale22
    MemberAuthor

    Rewrite/update Prometheus stats exporter. - On Hold

    Currently, prom-client for node is not compatible with OpenCensus Metrics data model. Basically, prom-client doesn't seem to support custom collectors. I have opened an issue: prometheus/client_js#241 to track this.

  3. self-assigned this
    on Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions