Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd timestamp function #1557
Comments
This comment has been minimized.
This comment has been minimized.
|
Isn't that automatically always the same as just |
This comment has been minimized.
This comment has been minimized.
|
The timestamp of the sample may be up to 5 minutes earlier though. |
This comment has been minimized.
This comment has been minimized.
|
Right, but we already set the timestamp of any sample to the evaluation timestamp before any function would be even able to look at the raw underlying timestamp. So this would imply changing that. https://github.com/prometheus/prometheus/blob/master/promql/engine.go#L692 What'd be the use case for this? |
This comment has been minimized.
This comment has been minimized.
|
It's a bit more relevant after #398, but for now it'd help for example detect stale series. |
brian-brazil
added
the
feature-request
label
Apr 15, 2016
fabxc
added
kind/enhancement
and removed
feature request
labels
Apr 28, 2016
brian-brazil
added a commit
that referenced
this issue
Apr 14, 2017
brian-brazil
added a commit
that referenced
this issue
May 3, 2017
brian-brazil
added a commit
that referenced
this issue
May 12, 2017
brian-brazil
added a commit
that referenced
this issue
May 12, 2017
brian-brazil
closed this
May 12, 2017
ali-sattari
referenced this issue
Dec 15, 2018
Open
Actual timestamp() for max_over_time (and other agg functions) #5003
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
brian-brazil commentedApr 15, 2016
We should add a function that returns the timestamp of a point in unixtime.
timestampseems like a good name.