On 14.10.21 12:49, Sandip Bhattacharya wrote:

value: >-
   {{ ((printf "%s-%s-%sT%s:%s:%s" workflow.creationTimestamp.Y 
workflow.creationTimestamp.m workflow.creationTimestamp.d workflow.creationTimestamp.H 
workflow.creationTimestamp.M workflow.creationTimestamp.S) | time).Unix }}


Missed the whole docs. Maybe something just like this will do.

value: >-
   {{ (workflow.creationTimestamp | time).Unix }}

--
https://blog.sandipb.net
https://twitter.com/sandipb

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fe70baa9-0b2a-ba11-5975-c01a924a98cf%40showmethesource.org.

Reply via email to