diff --git a/pkg/services/ngalert/api/lotex_am.go b/pkg/services/ngalert/api/lotex_am.go index 89b946fba85..77b3d82f829 100644 --- a/pkg/services/ngalert/api/lotex_am.go +++ b/pkg/services/ngalert/api/lotex_am.go @@ -147,7 +147,7 @@ func (am *LotexAM) RouteGetSilences(ctx *models.ReqContext) response.Response { } func (am *LotexAM) RoutePostAlertingConfig(ctx *models.ReqContext, config apimodels.PostableUserConfig) response.Response { - yml, err := yaml.Marshal(config) + yml, err := yaml.Marshal(&config) if err != nil { return response.Error(500, "Failed marshal alert manager configuration ", err) } diff --git a/pkg/services/ngalert/api/lotex_ruler.go b/pkg/services/ngalert/api/lotex_ruler.go index 1e9b4d0a8d4..3836dfd6532 100644 --- a/pkg/services/ngalert/api/lotex_ruler.go +++ b/pkg/services/ngalert/api/lotex_ruler.go @@ -112,7 +112,7 @@ func (r *LotexRuler) RouteGetRulegGroupConfig(ctx *models.ReqContext) response.R ), ), nil, - yamlExtractor(apimodels.RuleGroupConfigResponse{}), + yamlExtractor(&apimodels.GettableRuleGroupConfig{}), nil, ) }