Server lobby is simple server/service discovery tool based on NATS messenging daemon.
It's a stateless tool that gathers labels other servers share in their discovery messages in a common NATS subject.
|
||
---|---|---|
common | ||
daemon | ||
nats_driver | ||
server | ||
.gitignore | ||
go.mod | ||
go.sum | ||
README.md |
TODO
- filtering based on labels
- Output for prometheus
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config
This should be implemented as a template in /etc/lobby/templates - labels in directory /etc/lobby/labels One file per one label
- Deregistration
- Deregister when the daemon exits
- Separate the NATS code so it can support multiple backend/drivers
- Documentation
- Tests
- Command hooks - script or list of scripts that are triggered when discovery status has changed