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.

Align steps to time filter boundaries

See original GitHub issue

Issue Description

Currently the following can happen:

  • $timeSeries resolves to (intDiv(toUInt32(datetime), 300) * 300) * 1000
  • $timeFilter resolves to date >= toDate(1535652207) AND datetime >= toDateTime(1535652207)

As a result we get a graph like this:

image

There’s a dip on the left, because the bucket is not aligned to 5m boundary of $timeSeries.

I suggest we in fact align these two values to get a nicer view.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
hagen1778commented, Aug 31, 2018

Hi @bobrik

There is an option for rounding timestamps in query editor: round

Or you suggest to apply it automatically according to step and resolution params?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Align Data for Efficient FIR Filtering [DSP #17] - YouTube
Pinterest: https://pl.pinterest.com/jawitrle/ TIME CODES 00:00 Introduction 01:11 What are load/store instructions ? 01:35 Data alignment in ...
Read more >
Filtering and aggregation: manipulating time series
The first step in aggregating time-series data is alignment. Alignment creates a new time series in which the raw data has been regularized...
Read more >
Alignment and filtering | Introduction to ChIP-Seq using high ...
Perform alignment of reads to the genome using Bowtie2; Examining a SAM file and understanding the information stored in it; Filtering aligned reads...
Read more >
Arbitrary step alignment in Prometheus - sigmoid.at
The problem with step alignment in Prometheus. Prometheus has a fixed alignment for all queries that cannot be changed by the user.
Read more >
Data Alignment in FIR Filter SIMD Implementation - WolfSound
Learn how to align data in an FIR filter implementation with SIMD instructions.
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