-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mimirtool alertmanager verify: found character that cannot start any token #9409
Comments
@tacole02 Can you have a look at this to verify that the docs are correct? If so we will need to then fix the code. |
@armandgrillet , sure, I'll take a look! |
Hi @toby181 @eamonryan kindly helped me to test this and find out what the issue was. If you look at the example under "Load AlertManager configuration" on this page, this is the input it expects:
with the .tpl file as optional input. It looks like when you tested these configs, you didn't also include the Let me know if this helps! |
Hi guys, you're right @tacole02 , I did it without the alertmanager_config.yaml. Thanks! But does it actually verify the
|
Hi, Toby, I'm so glad the command worked! I'm not sure about how the command itself is implemented and whether it verifies the syntax of the template file. @armandgrillet , do you know who we could check this with? Thanks! |
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: