Skip to content

Commit 73bdd96

Browse files
authored
Merge pull request prometheus#1714 from mxinden/cut-v0.16.0
Cut v0.16.0
2 parents 4b22f61 + 828de57 commit 73bdd96

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

CHANGELOG.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
## 0.16.0-beta.0 / 2019-01-14
2-
3-
* [ENHANCEMENT] Add support for --log.format (#1658)
4-
* [ENHANCEMENT] Add CORS support to API v2 (#1667)
5-
* [ENHANCEMENT] Support HTML, URL title and custom sounds for Pushover (#1634)
6-
* [ENHANCEMENT] Update Alert compact view (#1698)
7-
* [ENHANCEMENT] Support adding custom fields to VictorOps notifications (#1420)
8-
* [BUGFIX] Fix unmarshalling of secret URLs in config (#1663)
9-
* [BUGFIX] Do not write groupbyall and groupby when marshaling config (#1665)
10-
* [BUGFIX] Make a copy of firing alerts with EndsAt=0 when flushing (#1686)
11-
* [BUGFIX] Respect regex matchers when recreating silences in UI (#1697)
12-
* [BUGFIX] Change DefaultGlobalConfig to a function in Alertmanager configuration (#1656)
13-
* [BUGFIX] [amtool] Support for assuming first label is alertname in silence add and query (#1693)
14-
15-
## 0.16.0-alpha.0 / 2018-11-30
1+
## 0.16.0 / 2019-01-17
162

173
This release introduces a new API v2, fully generated via the OpenAPI project
184
[1]. At the same time with this release the previous API v1 is being
@@ -34,19 +20,30 @@ deprecated. API v1 will be removed with Alertmanager release v0.18.0.
3420
* [FEATURE] [amtool] Add timeout support to amtool commands (#1471)
3521
* [FEATURE] [amtool] Added `config routes` tools for vizualization and testing routes (#1511)
3622
* [FEATURE] [amtool] Support adding alerts using amtool (#1461)
23+
* [ENHANCEMENT] Add support for --log.format (#1658)
24+
* [ENHANCEMENT] Add CORS support to API v2 (#1667)
25+
* [ENHANCEMENT] Support HTML, URL title and custom sounds for Pushover (#1634)
26+
* [ENHANCEMENT] Update Alert compact view (#1698)
27+
* [ENHANCEMENT] Support adding custom fields to VictorOps notifications (#1420)
3728
* [ENHANCEMENT] Add help link in UI to Alertmanager documentation (#1522)
3829
* [ENHANCEMENT] Enforce HTTP or HTTPS URLs in Alertmanager config (#1567)
3930
* [ENHANCEMENT] Make OpsGenie API Key a templated string (#1594)
4031
* [ENHANCEMENT] Add name, value and SlackConfirmationField to action in Slack notifier (#1557)
4132
* [ENHANCEMENT] Show more alert information on silence form and silence view pages (#1601)
4233
* [ENHANCEMENT] Add cluster peers DNS refresh job (#1428)
34+
* [BUGFIX] Fix unmarshalling of secret URLs in config (#1663)
35+
* [BUGFIX] Do not write groupbyall and groupby when marshaling config (#1665)
36+
* [BUGFIX] Make a copy of firing alerts with EndsAt=0 when flushing (#1686)
37+
* [BUGFIX] Respect regex matchers when recreating silences in UI (#1697)
38+
* [BUGFIX] Change DefaultGlobalConfig to a function in Alertmanager configuration (#1656)
4339
* [BUGFIX] Fix email template typo in alert-warning style (#1421)
4440
* [BUGFIX] Fix silence redirect on silence creation UI page (#1548)
4541
* [BUGFIX] Add missing `callback_id` parameter in Slack notifier (#1592)
4642
* [BUGFIX] Throw error if no auth mechanism matches in email notifier (#1608)
4743
* [BUGFIX] Use quoted-printable transfer encoding for the email notifier (#1609)
4844
* [BUGFIX] Do not merge expired gossip messages (#1631)
4945
* [BUGFIX] Fix "PLAIN" auth during notification via smtp-over-tls on port 465 (#1591)
46+
* [BUGFIX] [amtool] Support for assuming first label is alertname in silence add and query (#1693)
5047
* [BUGFIX] [amtool] Support assuming first label is alertname in alert query with matchers (#1575)
5148
* [BUGFIX] [amtool] Fix config path check in amtool (#1538)
5249
* [BUGFIX] [amtool] Fix rfc3339 example texts (#1526)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.0-beta.0
1+
0.16.0

api/v2/api.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ func NewAPI(alerts provider.Alerts, sf getAlertStatusFn, silences *silence.Silen
9191
// create new service API
9292
openAPI := operations.NewAlertmanagerAPI(swaggerSpec)
9393

94+
// Skip swagger spec and redoc middleware, only serving the API itself via
95+
// RoutesHandler. See: https://github.com/go-swagger/go-swagger/issues/1779
96+
openAPI.Middleware = func(b middleware.Builder) http.Handler {
97+
return middleware.Spec("", nil, openAPI.Context().RoutesHandler(b))
98+
}
99+
94100
openAPI.AlertGetAlertsHandler = alert_ops.GetAlertsHandlerFunc(api.getAlertsHandler)
95101
openAPI.AlertPostAlertsHandler = alert_ops.PostAlertsHandlerFunc(api.postAlertsHandler)
96102
openAPI.GeneralGetStatusHandler = general_ops.GetStatusHandlerFunc(api.getStatusHandler)

0 commit comments

Comments
 (0)