I'm storing all my prometheus config in source control, including prometheus server config, and alert rules.
I've currently got a CI pipeline set up to validate my alert rules using promtool and it's working great!
I'd also like to validate my prometheus server config's yml, so i can avoid errors like this:
level=error ts=2018-02-23T19:17:06.217109599Z caller=main.go:446 msg="Error reloading config" err="couldn't load configuration (--config.file=/etc/prometheus.yml): parsing YAML file /etc/prometheus.yml: yaml: unmarshal errors:\n line 17: cannot unmarshal !!map into []*config.AlertmanagerConfig"
Any recommendations for a tool to catch yaml errors (and also any way to auto-prettify yaml)? Searching around github I couldn't seem to find any popular choices so I'm curious what everyone else does.