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 upGauge: arithmetic operations on two unix timestamps lead to empty time series #1860
Comments
shatting
changed the title
Gauge: subtracting two unix timestamps leads to empty time series
Gauge: arithmetic operations on two unix timestamps lead to empty time series
Jul 30, 2016
This comment has been minimized.
This comment has been minimized.
|
classic case of RTFM |
shatting
closed this
Jul 30, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
shatting commentedJul 30, 2016
•
edited
Tried subtracting (but the same holds for *,/,+) two unix timestamps from the same job/instance. The /metrics endpoint shows them as:
In the prometheus GUI, i can evaluate each metric and get a value, and i can graph:
However, trying to subtract the two timestamps (in either order)
leads to an empty time series
Subtracting a timestamp from itself
leads to the expected
The only anomaly i could see causing this behaviour is the
exported_countrylabel which comes from the same label name being used in the client and the scrape config.Environment
System information:
FreeBSD 10.2-RELEASE-p9 amd64
Prometheus version:
prometheus, version 1.0.1 (branch: master, revision: be40190)
build user: root@e881b289ce76
build date: 20160722-20:02:55
go version: go1.6.2
Prometheus configuration file: