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

MetricsQL: Document stalness marker differences between default_rollup and last_over_time #6279

Closed
michalhosna opened this issue May 15, 2024 · 2 comments · Fixed by #6282
Closed

Comments

@michalhosna
Copy link

michalhosna commented May 15, 2024

From the current(2024-05-15) MetricsQL documentation, it seems that the default_rollup and last_over_time functions are effectivly the same.

Even looking into the code, those functions seem the same

var rollupLast = rollupDefault

But there are somewhat hidden differences at minimum with staleness marker handling, which are non-obvious

if *noStaleMarkers || funcName == "default_rollup" || funcName == "stale_samples_over_time" {

Those differences, as well as any other differences, should be documented in the MetricsQL documentation.

@AndrewChubatiuk
Copy link
Contributor

hey @michalhosna
thanks for a finding
added PR with a note about difference between these functions

@hagen1778
Copy link
Collaborator

Thanks for reporting @michalhosna!
The issue should be addressed in this commit ce3cfd7

hagen1778 pushed a commit that referenced this issue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants