cloudfoundry / log-cache

Archived: Now bundled in https://github.com/cloudfoundry/log-cache-release
Apache License 2.0
14 stars 11 forks source link

Log Cache PromQL endpoint cannot handle nanosecond time #74

Closed trevorwhitney closed 6 years ago

trevorwhitney commented 6 years ago

The prometheus web-ui queries the backend with time in a weird format: time=1529079064.036

We get a syntax error with the query that the prometheus UI generates but if we remove the decimal it does not throw an error:

{"error":"strconv.ParseInt: parsing \"1529079064.036\": invalid syntax","code":3}

We don't get any data until we remove the time parameter completely, though this is likely a spurious detail related to our data-set. Here was our complete query:

query=server_up_time%7Bsource_id%3D%22uaa%22%7D&time=1529079064.036&_=1529078800252
cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158395515

The labels on this github issue will be updated when the story is started.

colins commented 6 years ago

This seems to have been a misunderstanding of the log cache /promql endpoint

toddboom commented 6 years ago

I believe this was resolved through the aforementioned Pivotal Tracker story and just needs to be closed out.