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.
Go to file
Adam Štrauch c982038c53
NATS driver separated into its own package
* Client mode
2021-09-02 19:22:39 +02:00
common NATS driver separated into its own package 2021-09-02 19:22:39 +02:00
daemon NATS driver separated into its own package 2021-09-02 19:22:39 +02:00
nats_driver NATS driver separated into its own package 2021-09-02 19:22:39 +02:00
server Goodbye messages, proper exit handling 2021-09-02 02:13:12 +02:00
.gitignore Initial commit 2021-08-31 16:26:09 +02:00
README.md NATS driver separated into its own package 2021-09-02 19:22:39 +02:00
go.mod Initial commit 2021-08-31 16:26:09 +02:00
go.sum Initial commit 2021-08-31 16:26:09 +02:00

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