grafana/grizzly

[Bug]: Updating alert rule groups does not seem to work

Closed this issue · 2 comments

Grizzly Version

0.4.0

Expected Behavior

grr apply resource should work when the resource is an AlertRuleGroup that contains rules that already exist on the server. Even when those rules do not have UIDs inside them, since the UIDs can be determined by matching the names of the existing rules.

Actual Behavior

grr apply resource does not work when the resource is a AlertRuleGroup that contains rules that already exist on the server. The error message is FATA[0000] fetching alert rule: json: cannot unmarshal array into Go value of type models.ProvisionedAlertRule

Steps to Reproduce

No response

Unfortunately, using 0.4.1 doesn't seem to have solved this for me. Should we re-open it? @theSuess

I get the error failed: creating rule for group [redacted]: rule title under the same organisation and folder should be unique"}

Actually I'm not totally certain where the problem is now. It might be that my alert rules or rule group is not perfectly formed. I'll play around with curl until I'm sure the problem is with grizzly.