Hello all, This is the sample example how i am getting the timestamp as a value. Metric Name: argo_workflows_custom_start_time_gauge_workflow Labels: endpoint: 100.67.6.88:9000 instanceName: vitam.wf.s.zsm.kws-75qhv proxy-server: argo-proxy-svc workflowName: vitam.wf.s.zsm.kws status: Succeeded Value: value: 20211008050126
On Thursday, October 7, 2021 at 3:49:15 PM UTC+2 Brian Candler wrote: > Prometheus metrics are floating point numbers. Can you show an exact > example of one of the metrics you are talking about? > > On Thursday, 7 October 2021 at 14:45:18 UTC+1 postt...@gmail.com wrote: > >> It is getting as a value. SO, we cannot use label_replace for that >> >> On Thursday, October 7, 2021 at 2:58:34 PM UTC+2 Brian Candler wrote: >> >>> Are you saying that the timestamp appears in the *label* of a metric? >>> e.g. >>> >>> blahblah{starttime="20211007091634"} 1 >>> >>> In that case, if you can't get the front-end you're using to render the >>> metric to reformat the label, then you can use the label_replace >>> <https://prometheus.io/docs/prometheus/latest/querying/functions/#label_replace> >>> >>> function to modify the labels. Something like (untested): >>> >>> label_replace(blahblah, "starttime", "$1-$2-$3 $4:$5;$6", >>> "starttime", "(....)(..)(..)(..)(..)(..)") >>> >> -- 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/694d219b-79fd-46fb-946a-bd1905398d68n%40googlegroups.com.