This serves as a documentation for monitoring Eureka microservice connectivity in K8s environment.
- eureka-server/, servicea/, serviceb/: A microservice app.
- eureka-collector/: The metric exporter.
- deployments/: Deployment files for K8s (and Docker).
We will deploy CloudWatch Agent as a DaemonSet in our EKS cluster, listens for StatsD metrics, and forwards them to CloudWatch.
A small metric exporter will fetch registered service info and send StatsD metric to the agent.
-
For the microservice app, build the image and push it to a public repository, or just use the one in the manifests.
docker build -t eureka-server . -
Make sure an EKS cluster is already up and running. For the rest, follow the README inside deployments/