ngalert make: Support GNU install on Darwin (#78482)
* ngalert `make`: Support GNU install on Darwin Currently, the Makefile assumes that Darwin is using the Mac version of `sed` I have the GNU version, so it failed. With this PR, it checks which version is installed I also called `make` and there are some changes that came out of it * swagger-gen
This commit is contained in:
@@ -252,6 +252,7 @@ func (api *API) RegisterRulerApiEndpoints(srv RulerApi, m *metrics.API) {
|
||||
group.Get(
|
||||
toMacaronPath("/api/ruler/grafana/api/v1/export/rules"),
|
||||
requestmeta.SetOwner(requestmeta.TeamAlerting),
|
||||
requestmeta.SetSLOGroup(requestmeta.SLOGroupHighSlow),
|
||||
api.authorize(http.MethodGet, "/api/ruler/grafana/api/v1/export/rules"),
|
||||
metrics.Instrument(
|
||||
http.MethodGet,
|
||||
@@ -287,6 +288,7 @@ func (api *API) RegisterRulerApiEndpoints(srv RulerApi, m *metrics.API) {
|
||||
group.Post(
|
||||
toMacaronPath("/api/ruler/grafana/api/v1/rules/{Namespace}/export"),
|
||||
requestmeta.SetOwner(requestmeta.TeamAlerting),
|
||||
requestmeta.SetSLOGroup(requestmeta.SLOGroupHighSlow),
|
||||
api.authorize(http.MethodPost, "/api/ruler/grafana/api/v1/rules/{Namespace}/export"),
|
||||
metrics.Instrument(
|
||||
http.MethodPost,
|
||||
|
||||
Reference in New Issue
Block a user