mimirtool alertmanager verify: found character that cannot start any token #9409
Labels
bug
Something isn't working
component/mimirtool
type/docs
Improvements or additions to documentation
Describe the bug
We're evaluating the mimirtool to verify / load the configuration and notification templates for the Alertmanager, using examples that are provided in the documentation.
Doing so for the provided Alertmanager config works, doing the same for the provided notification policy fails with the exception "mimirtool: error: yaml: line 2: found character that cannot start any token, try --help".
Trying some other template will mostly result in "line 1: cannot unmarshal !!map into string".
To Reproduce
Steps to reproduce the behavior:
Verifying the Alertmanager configuration works, having this:
alertmanager_config.yaml:
Verification works (no exception)
Doing the same for the notification policy.
alertmanager_template.tpl:
Verification fails
Expected behavior
Either the documentation got a faulty example or there's some issue with the verification / linting.
Environment
Mimirtool is running in the latest version. Mimir itself is not involved yet.
Additional Context
The text was updated successfully, but these errors were encountered: