client_golang/api/prometheus/v1
Thomas Jackson c52580de2b Change all time formatting to UTC and off of time.RFC3339Nano
Prometheus has issues parsing RFC3339Nano timestamps if the year has more than 4 digits, in addition it is the second-pass parse attempt. Since this is a client library and the interface is a `time.Time` it makes sense that we pick the clearest simplest format-- so I propose we use the `model.Time` representation of time in our communications to prometheus. This (1) removes the issues with timezones in those queries going downstream and (2) completely works around this #614 issue as the parsing mechanism in prometheus can handle those times in this format.

Related to #614

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-07-09 07:31:37 -07:00
..
api.go Change all time formatting to UTC and off of time.RFC3339Nano 2019-07-09 07:31:37 -07:00
api_bench_test.go Switch from encoding/json -> jsoniter (#570) 2019-05-28 13:45:06 +02:00
api_test.go Add Warnings to LabelValues and LabelNames (#609) 2019-06-17 21:27:57 +03:00