Skip to content
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

Alert Assertion Validation Does not Working as Expected #1177

Closed
haricnugraha opened this issue Nov 14, 2023 · 0 comments · Fixed by #1179
Closed

Alert Assertion Validation Does not Working as Expected #1177

haricnugraha opened this issue Nov 14, 2023 · 0 comments · Fixed by #1179
Assignees

Comments

@haricnugraha
Copy link
Contributor

haricnugraha commented Nov 14, 2023

Describe the bug
Monika crashes when the alert assertion value is invalid.

To Reproduce
Run Monika with the following configuration:

probes:
  - id: '1'
    requests:
      - url: https://github.com
        alerts:
          - assertion: response.size >= 10000 ms
            message: Response size is {{ response.size }}, expecting less than 10000

Expected behavior
Monika gives a message to inform that alert assertion is invalid and stop. In Symon mode, Monika skips the probe that has invalid alert assertion and continues to run other probe.

Screenshots
b8d8210f-4306-4244-939e-460753f26c88

Desktop (please complete the following information):

  • OS: [e.g. Pop!_OS]
  • Version [e.g. 22.04]
@haricnugraha haricnugraha self-assigned this Nov 14, 2023
@haricnugraha haricnugraha changed the title Validate Alert Assertion Alert Assertion Validation Does not Working as Expected Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant