On 31.08.21 04:27, Prince wrote: > > for NewMetricWithTimestamp(time.Time,metric) Is it compulsory that the > time should be in UTC?
Short answer: No. The Go `time.Time` type includes the time zone. It can use any time zone. The library will then use the capabilities of the Go `time.Time` type to convert it into Unix-time, as required by the exposition format, which is independent of time zones. In different news: Using the Prometheus instrumentation libraries to instrument your code counts as using Prometheus and should be discussed on the Prometheus users mailing list, see https://groups.google.com/forum/#!forum/prometheus-users This here is the mailing list to discuss development of the various Prometheus components itself. -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] bjo...@rabenste.in -- You received this message because you are subscribed to the Google Groups "Prometheus Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/20210902160551.GP1307%40jahnn.