Skip to content

DataFrame representation of all metrics at a given timestamp #86

@chauhankaranraj

Description

@chauhankaranraj

Currently, the MetricList class can be used to group a metric time series by unique label configs. (See How MetricsList works in MetricList_example.ipynb). This lets the user work with a metric by working with time series values in Metric objects separately.

However in some use cases you might need to work with values of a metric for all different label configs, at a given timestamp.So we need a easy-to-work-with representation for this task.

The basic difference between what's already in the library and what this issue asks for is

  1. What exists

metric =

badger_disk_writes:rate1m_Fourier {'ae_source': 'https://prometheus-exporter-alpha-0.thoth-dgraph-stage.svc:8080/debug/prometheus_metrics', 'instance': 'prometheus-aggregate-exporter-thoth-dgraph-stage.cloud.paas.psi.redhat.com:80', 'job': 'Thoth Dgraph aggregate-exporter (stage)', 'monitor': 'datahub', 'value_type': 'yhat_lower'} 

timeseries =

timestamp value
2020-02-02 0

metric =

badger_disk_writes:rate1m_Fourier {'ae_source': 'https://prometheus-exporter-alpha-0.thoth-dgraph-stage.svc:8080/debug/prometheus_metrics', 'instance': 'prometheus-aggregate-exporter-thoth-dgraph-stage.cloud.paas.psi.redhat.com:80', 'job': 'Thoth Dgraph aggregate-exporter (stage)', 'monitor': 'datahub', 'value_type': 'yhat_upper'} 

timeseries =

timestamp value
2020-02-02 1
  1. What this issue asks for

timestamp = 2020-02-02

name ae_source value_type value timestamp
badger_disk_writes:rate1m_Fourier thesource yhat_lower 0 1583355394
badger_disk_writes:rate1m_Fourier thesource yhat_upper 1 1583355394

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions