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.

Use Weave Cloud to view and monitor your microservices from one convenient dashboard, and deliver higher quality code more rapidly with automated continuous delivery.

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

Prometheus Monitoring

Step 1 of 3

Step 1 - Sign Up To Weave Cloud

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. To begin, sign up for Weave Cloud .

If you already have a Weave Cloud account, you should create a new 'Instance' for this exercise. To create a new instance, use the instance selector drop-down in the top bar and select 'View all instances', then select '+ Connect a cluster' from the top of the page.

When asked, name your instance 'Prometheus Monitoring Lab'.

2. From the setup screens select Kubernetes and then Generic Kubernetes.

3. Copy the command that appears and paste it into the terminal window. This installs the Weave Cloud agents onto the Kubernetes cluster.
Note: When doing this, make sure you use the Standard installation method, not the one using Helm.

4. Wait until the page shows that all agents have connected. (This might take up to a minute or two.)

5. Click the View Your Cluster button to continue to the instance homepage