valeriansaliou / vigil

🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).

Home Page:https://crates.io/crates/vigil-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to sort nodes by config order?

sparanoid opened this issue · comments

It seems all nodes are sorted alphabetically. Currently I can hack the order by prefixing numbers like:

[[probe.service]]
id = "0-frontend"

...

[[probe.service]]
id = "1-backend"

But this also affects readability in notifications:

❌ Status changed to: DEAD.
- 0-frontend:homepage: 1 dead
Link: https://example.com/

That would be great if there is a way to sort them manually or just keep the order defined in the config.

That's right, prefixing node & service identifiers w/ numbers is the only way to go for now. Keeping this open, as this would be a better idea to have indexes there.