You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index elastalert already exists. Skipping index creation.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/elastalert/loaders.py", line 299, in load_options
self.rule_schema.validate(rule)
File "/usr/local/lib/python3.11/site-packages/jsonschema/validators.py", line 430, in validate
raise error
jsonschema.exceptions.ValidationError: <file content>, 'rule_file': '/opt/elastalert/rules/payment_send_spike_latency.yaml'} is not valid under any of the given schemas
Failed validating 'oneOf' in schema:
<the schema>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/elastalert", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/elastalert/elastalert.py", line 1868, in main
client = ElastAlerter(args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/elastalert/elastalert.py", line 127, in __init__
self.rules = self.rules_loader.load(self.conf, self.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/elastalert/loaders.py", line 176, in load
raise EAException('Error loading file %s: %s' % (rule_file, e))
elastalert.util.EAException: Error loading file /opt/elastalert/rules/payment_send_spike_latency.yaml: Invalid Rule file: /opt/elastalert/rules/payment_send_spike_latency.yaml
<file_content> is not valid under any of the given schemas
Failed validating 'oneOf' in schema:
<the schema>
Does skip_invalid work for schema validation?
The text was updated successfully, but these errors were encountered:
Discussed in #1333
Originally posted by missaeldenadai December 4, 2023
Hi,
If a rule file is invalid due to schema validation, it is not being skipped and hence our ElastAlert2 is not deploying.
My rule containing the schema error (the error is on
metric_agg_type: percentile
):The stack trace:
Does
skip_invalid
work for schema validation?The text was updated successfully, but these errors were encountered: