Description
It would be really helpful if the exporter could support a --dry-run option which just parsed the queries.yaml, loaded all the metrics and queries from there and then exited with a return code indicating whether it had been loaded successfully or not.
My intention is to use this for unit tests. Right now we can check if the yaml is syntactically valid but at least once already someone has written valid yaml with an invalid structure for the exporter config.
Ultimately of course full integration tests would be better but that requires starting up a postgres database, getting the authentication right, and even deploying the schema for any custom queries. A --dry-run option would let people test on a laptop without setting any of that up and have quick and simple unit tests.