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 upAlert templates type conflict: SampleValue v. float64 #556
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, try Sounds like a bug. |
This comment has been minimized.
This comment has been minimized.
|
Ah, it's a casting problem. We need to cast to float64 in prometheus/rules/manager/manager.go Line 182 in 5f27629 |
This comment has been minimized.
This comment has been minimized.
|
One thing to watch out for when changing this: we currently have a nice https://github.com/prometheus/client_golang/blob/master/model/samplevalue.go#L35-L37 If we cast everything to |
brian-brazil
referenced this issue
Aug 21, 2015
Merged
Cast value to float, as that's what the console templates expect. #1020
brian-brazil
closed this
in
#1020
Aug 24, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
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. |
aecolley commentedFeb 25, 2015
Attempts to interpolate
{{humanizeDuration $value}}fail with a type error:There's no way to work around this.