Skip to content
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

Ability to sort nodes by config order? #101

Open
sparanoid opened this issue Sep 27, 2021 · 1 comment
Open

Ability to sort nodes by config order? #101

sparanoid opened this issue Sep 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sparanoid
Copy link

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.

@valeriansaliou
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants