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
promtool syntax detects errors #13963
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you do?
promtool check rules prometheus.yml
What did you expect to see?
v2.46.0 can directly use the default configuration detection is ok, what does the new version do
What did you see instead? Under which circumstances?
Checking prometheus.yml
FAILED:
prometheus.yml: yaml: unmarshal errors:
line 2: field global not found in type rulefmt.RuleGroups
line 8: field alerting not found in type rulefmt.RuleGroups
line 15: field rule_files not found in type rulefmt.RuleGroups
line 21: field scrape_configs not found in type rulefmt.RuleGroups
System information
docker
Prometheus version
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
Logs
No response
The text was updated successfully, but these errors were encountered: