mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Add a humanizeTimestamp to prom.lib.
This commit is contained in:
parent
93753a0500
commit
02960343bb
|
@ -30,6 +30,7 @@
|
||||||
{{ define "humanizeNoSmallPrefix" }}{{ if and (lt . 1.0) (gt . -1.0) }}{{ printf "%.3g" . }}{{ else }}{{ humanize . }}{{ end }}{{ end }}
|
{{ define "humanizeNoSmallPrefix" }}{{ if and (lt . 1.0) (gt . -1.0) }}{{ printf "%.3g" . }}{{ else }}{{ humanize . }}{{ end }}{{ end }}
|
||||||
{{ define "humanize1024" }}{{ humanize1024 . }}{{ end }}
|
{{ define "humanize1024" }}{{ humanize1024 . }}{{ end }}
|
||||||
{{ define "humanizeDuration" }}{{ humanizeDuration . }}{{ end }}
|
{{ define "humanizeDuration" }}{{ humanizeDuration . }}{{ end }}
|
||||||
|
{{ define "humanizeTimestamp" }}{{ humanizeTimestamp . }}{{ end }}
|
||||||
{{ define "printf.1f" }}{{ printf "%.1f" . }}{{ end }}
|
{{ define "printf.1f" }}{{ printf "%.1f" . }}{{ end }}
|
||||||
{{ define "printf.3g" }}{{ printf "%.3g" . }}{{ end }}
|
{{ define "printf.3g" }}{{ printf "%.3g" . }}{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue