Closed axot closed 6 years ago
@bmoyles0117 Hi, any advice for this?
I think, this forked Prometheus doesn't support query function. Because, it doesn't have storage.
https://github.com/Stackdriver/stackdriver-prometheus/blob/release-0.4.1/web/api/v1/api.go#L118-L141
@mtanda Yes, it seems whole query APIs were deleted, but why?
Because this is just a forwarder from Prometheus exporters to Stackdriver.
https://github.com/Stackdriver/stackdriver-prometheus/blob/release-0.4.1/web/web.go#L571
"'query' is unsupported"
Original Prometheus has storage (tsdb), and it can handle query. But, this Prometheus doesn't have storage, just forward scraped metrics to Stackdriver.
May be you want to use PromQL for querying collected metrics. But it is impossible, you should use Stackdriver query API.
Or, you add Original Prometheus to support Stackdriver remote write.
Thanks for the feedback. @mtanda is right, the Prometheus to Stackdriver integration doesn't support PromQL, and it doesn't have a local TSDB, so all the related endpoints were removed.
We are working on a new integration that works as a sidecar of an unmodified Prometheus Server, so that you will be able to both send data to Stackdriver and access the local Prometheus Server features. The design explains the work and why we couldn't offer that as our first option.
I'm going to close this as working as intended.
What did you do?
What did you expect to see?
What did you see instead? Under which circumstances? Method Not Allowed
Environment GKE
{"version":"0.4.2","revision":"9f5c836bfc3abea91b7473f4a57c107806099bf9","branch":"release-0.4.2","buildUser":"bmoyles@bmoyles-macbookpro.roam.corp.google.com","buildDate":"20180426-20:01:01","goVersion":"go1.9"}