-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial API v1 implementation #774
Conversation
"github.com/prometheus/prometheus/web/api" | ||
|
||
api_legacy "github.com/prometheus/prometheus/web/api/legacy" | ||
api_v1 "github.com/prometheus/prometheus/web/api/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid underscore in names.
ce6000f
to
9f839ab
Compare
"github.com/prometheus/prometheus/web/api" | ||
|
||
legacy "github.com/prometheus/prometheus/web/api/legacy" | ||
v1 "github.com/prometheus/prometheus/web/api/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The renaming is not even required in that case. The package is called v1 anyway.
Perhaps rename Who else is about to review this? @juliusv ? |
@@ -41,7 +41,9 @@ import ( | |||
"github.com/prometheus/prometheus/storage/remote/influxdb" | |||
"github.com/prometheus/prometheus/storage/remote/opentsdb" | |||
"github.com/prometheus/prometheus/web" | |||
"github.com/prometheus/prometheus/web/api" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no newline here as per our import group conventions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
👍, but note my latest two comments on the design doc (ok to encode timestamp/values as tuples also for vectors, and not needing a special endpoint for metrics names). |
Merging these basics so we have the changes in |
These labels were added in: prometheus#2506
These commits add an initial API v1 that provides the equivalent endpoint to the old API accepting unix or RFC3339 timestamps.
Both APIs are running in parallel.