Difficulty: Beginner
Estimated Time: 10 minutes

Monitoring Microservices with Weave Cloud

Microservices running in containers are dynamic environments that can make monitoring a challenge. Since containers go down and spin back up again sometimes on different servers or even regions, traditional monitoring systems which are typically server-focused, don’t work that well.

Weave Cloud Monitoring is built upon the open source project Prometheus, and makes use of Prometheus' ability to scrape metrics across Kubernetes pods. Weave Cloud stores metrics as key-label pairs and stores them in a time-series database where they can be queried, graphed and dashboarded.

In this scenario, you will deploy the sample microservices app, ‘Sock Shop’ to a Kubernetes cluster and then launch the Cloud Agents to monitor it with Prometheus.

In this scenario, you used Weave Cloud to monitor your app and its network.

With Weave Cloud view and monitor your microservices from one convenient dashboard, and together with automated continuous delivery built with your favorite tools, deliver high quality code more rapidly.

Explore allows developers to explore application deployments and their dependencies.

Deploy manages the automation of deployments, and automatically rolls out new versions if the Docker Image changes.

Monitor automatically aggregates and pushes application metrics to Weave Cloud.

Weave Net enforces secure cross-cloud communication between containers using Kubernetes Network Policy.

Try it on your own infrastructure by following the Weave Cloud guides series.

Prometheus Monitoring

Step 1 of 2

Deploying Prometheus to connect to Weave Cloud Monitor

Weave Cloud Monitor handles metrics from the Prometheus daemon once it has been deployed to your cluster.

Let's explore the cluster by deploying the Weave Cloud Agents:

1. Sign up for a Weave Cloud account.

2. Create a new instance and call it 'Katacoda - Prometheus Training'.

3. From the screens that appear, select Kubernetes and then click Generic Kubernetes and copy the command that appears.

4. Run the command on the master node to install the Weave Cloud Agents.