question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Treat unique label configs as separate time series in MetricRangeDataFrame

See original GitHub issue

Is your feature request related to a problem? Please describe.
MetricRangeDataFrame formats results of data type “range vector” into an easy to work with pandas dataframe. However, in this representation the time series are not “collated” or “grouped” by unique label combinations. i.e., the dataframe looks something like this:

Screenshot from 2021-04-12 17-33-54

So in order to analyze, inspect, or plot the time series corresponding to each unique label configuration, I first have to do the additional step of grouping the dataframe by labels.

Describe the solution you’d like
A dataframe where the unique label combinations are set as the MultiIndex for the dataframe, and the values are the time series values. i.e., a dataframe that looks something like this:

Screenshot from 2021-04-12 17-34-14

Describe alternatives you’ve considered

  • Manually calling the set_index function with the relevant label names
  • Manually doing a groupby with the relevant label names

Additional context
This would also be more consistent with what thanos output looks like Screenshot from 2021-04-12 17-46-44

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelCliffordcommented, Apr 12, 2021

👍 @chauhankaranraj

I’m all for this change to provide the time series grouped by unique labels as the default behavior. That said, we could use multi-indexing and maintain everything in a single DF, or we could divided the collected data into a dictionary that has a DF for each unique label set. Which may make it easier for someone to understand the data and work with the entities they are interested in. But just an alternate suggestion to consider : )

0reactions
seshetacommented, Dec 14, 2021

@sesheta: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I combine same name of prometheus time series ...
so, how can i combine the two "same" metric, by shared label(site="site5",src="ndoe1", dst="node6"), or ignore additional label(linkid,dstip, ...
Read more >
Time series dimensions | Grafana documentation
Each time series in Grafana optionally has labels. Labels are a set of key/value pairs for identifying dimensions. Example labels could be {location=us}...
Read more >
Querying basics - Prometheus.io
It is possible to filter these time series further by appending a comma separated list of label matchers in curly braces ( {}...
Read more >
Missing data display in time series · Issue #1752 - GitHub
Steps to reproduce the behavior: setup time series label with data and config file attached; zoom in and out in data display panel;...
Read more >
RBFS Time Series Database Configuration Guide - RtBrick
Each BD subscribes to the global.time-series.metric.config table, ... unique combination of key-value label pairs represents a new time ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found