Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record rules results shifted in time #5307

Open
alex-k opened this Issue Mar 5, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@alex-k
Copy link

alex-k commented Mar 5, 2019

Bug Report

What did you do?

I have two recording rules

global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s


record: sli:metric:good_events 
expr: sum   by(product, journey, step) (splunk_journey{data="good_events"}) 
labels:   metric: splunk_journey

record: sli:metric:valid_events 
expr: sum   by(product, journey, step) (splunk_journey{data="valid_events"}) 
labels:   metric: splunk_journey


What did you expect to see?

I expect to see in result same values as in target metrics grouped by labels

What did you see instead? Under which circumstances?

Sometimes I see values shifted in time by 15sec

Expected:

image

Got:

image

Environment

Not applicable

  • System information:

Not applicable

  • Prometheus version:

Version 2.6.1
Revision b639fe1

  • Alertmanager version:

Not applicable

  • Prometheus configuration file:

  • Alertmanager configuration file:

  • Logs:

@roidelapluie

This comment has been minimized.

Copy link
Contributor

roidelapluie commented Mar 5, 2019

Can you share your recording rules file?

@alex-k

This comment has been minimized.

Copy link
Author

alex-k commented Mar 5, 2019

@kminehart

This comment has been minimized.

Copy link

kminehart commented Mar 7, 2019

This is similar to:

#4860

I believe we were experiencing the same sort of time drift problem, but we have way too many recording rules, and a lot of them are fairly complex (most of them came with the prometheus operator), so we might have been experiencing an even greater amount of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.