Skip to content

Commit 7106bcc

Browse files
Fix version in APIv1 deprecation notice (prometheus#3815)
Signed-off-by: George Robinson <[email protected]>
1 parent dc1e1a2 commit 7106bcc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func New(opts Options) (*API, error) {
162162
// true for the concurrency limit, with the exception that it is only applied to
163163
// GET requests.
164164
func (api *API) Register(r *route.Router, routePrefix string) *http.ServeMux {
165-
// TODO(gotjosh) API V1 was removed as of version 0.28, when we reach 1.0.0 we should removed these deprecation warnings.
165+
// TODO(gotjosh) API V1 was removed as of version 0.27, when we reach 1.0.0 we should removed these deprecation warnings.
166166
api.deprecationRouter.Register(r.WithPrefix("/api/v1"))
167167

168168
mux := http.NewServeMux()

api/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type Alerts struct {
2323
}
2424

2525
// NewAlerts returns an *Alerts struct for the given API version.
26-
// Since v1 was deprecated in 0.28, v2 is now hardcoded.
26+
// Since v1 was deprecated in 0.27, v2 is now hardcoded.
2727
func NewAlerts(r prometheus.Registerer) *Alerts {
2828
numReceivedAlerts := prometheus.NewCounterVec(prometheus.CounterOpts{
2929
Name: "alertmanager_alerts_received_total",

api/v1_deprecation_router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (dr *V1DeprecationRouter) deprecationHandler(w http.ResponseWriter, req *ht
5454
Error string `json:"error"`
5555
}{
5656
"deprecated",
57-
"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.28.0 - please use the equivalent route in the v2 API",
57+
"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.27.0 - please use the equivalent route in the v2 API",
5858
}
5959

6060
w.Header().Set("Content-Type", "application/json")

0 commit comments

Comments
 (0)