valeriansaliou / vigil

🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).
https://crates.io/crates/vigil-server
Mozilla Public License 2.0
1.74k stars 128 forks source link

Add a way to validate the config file #88

Open Eijebong opened 3 years ago

Eijebong commented 3 years ago

Right now there's basically nothing checked on startup and it will panic when vigil starts polling (so basically immediately) if something's wrong.

It'd be nice to have a verification step first so we could include stuff like checking that there's no duplicated id in the config file. (Totally didn't open that because I made this mistake twice already...)

gbonnefille commented 3 years ago

I've just encoutered something similar: I used a wrong URL for probe (tcp://a.b.c.d:1234/) and I only had a panic, invalid replica_url without anything else. At least the incorrect string would be helpful.

tomlawesome commented 3 years ago

+1 haven't even got Vigil to launch properly yet because it panicks straight away