mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-03 20:39:32 -05:00
Features API: Add OpenAPI 3.1 and 3.2
Now that #17825 is merged. Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
This commit is contained in:
parent
75f94903b3
commit
3bc688e5cb
2 changed files with 4 additions and 0 deletions
2
cmd/prometheus/testdata/features.json
vendored
2
cmd/prometheus/testdata/features.json
vendored
|
|
@ -4,6 +4,8 @@
|
|||
"exclude_alerts": true,
|
||||
"label_values_match": true,
|
||||
"lifecycle": false,
|
||||
"openapi_3.1": true,
|
||||
"openapi_3.2": true,
|
||||
"otlp_write_receiver": false,
|
||||
"query_stats": true,
|
||||
"query_warnings": true,
|
||||
|
|
|
|||
|
|
@ -427,6 +427,8 @@ func New(logger *slog.Logger, o *Options) *Handler {
|
|||
r.Enable(features.API, "time_range_series") // start/end parameters for /series endpoint.
|
||||
r.Enable(features.API, "time_range_labels") // start/end parameters for /labels endpoints.
|
||||
r.Enable(features.API, "exclude_alerts") // exclude_alerts parameter for /rules endpoint.
|
||||
r.Enable(features.API, "openapi_3.1") // OpenAPI 3.1 specification support.
|
||||
r.Enable(features.API, "openapi_3.2") // OpenAPI 3.2 specification support.
|
||||
r.Set(features.UI, "ui_v3", !o.UseOldUI)
|
||||
r.Set(features.UI, "ui_v2", o.UseOldUI)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue