client_golang/api
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
..
prometheus/v1 Change all time formatting to UTC and off of time.RFC3339Nano 2019-07-09 07:31:37 -07:00
client.go Pass warnings through on non-error responses (#599) 2019-06-14 01:40:59 +02:00
client_test.go Pass warnings through on non-error responses (#599) 2019-06-14 01:40:59 +02:00