Mao Service Discovery is a service discovery and monitoring tool that supports gRPC streams, ICMP ping, and etcd for service registration. Version 1.6.9-linux-rc1 is a release candidate for Linux. It provides a Web GUI, RESTful API, and config persistence. It is designed for microservices environments where traditional DNS-based discovery may not be sufficient. The project uses etcd v3 as its backend and supports both ICMPv4 and ICMPv6 for health checks. It has no stable release yet and is developed by a single maintainer.
npm install mao-service-discoveryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a service discovery instance with etcd backend, listens for service up/down events, and starts monitoring.
Pin to exact version and monitor changelog
Use async/await or .then() on start()
Run with sudo or set CAP_NET_RAW capability
Wrap in try-catch and implement retry logic
Ensure etcd is started on the specified host and port
Run as root or grant CAP_NET_RAW: sudo setcap cap_net_raw+ep /path/to/node
Use import { ServiceDiscovery } from 'mao-service-discovery'