# Monitoring

In this article, we will be setting up a dashboard to monitor the watchtower, which are deployed as a container image.

<figure><img src="/files/O7Wm43dKjTOcGwcszH7u" alt=""><figcaption></figcaption></figure>

**cAdvisor:**

cAdvisor, or Container Advisor, is an open-source tool tailored for monitoring and analyzing the performance of Docker containers and other containerization platforms. It operates as a live daemon, collecting and exporting information about running containers.

&#x20;

**Prometheus:**

Prometheus is a free and open-source tool that monitors your software systems, collecting essential data about applications and services. It provides alerts for prompt issue detection and resolution.

&#x20;

**Grafana:**

Data visualization tool that helps you to turn complex data into easy-to-understand charts and graphs. It connects to various data sources, like databases or monitoring systems, and allows you to create interactive dashboards.

### Pre-requisites <a href="#pre-requisites" id="pre-requisites"></a>

For the monitoring dashboard to function as expected, make sure you have the following setup

* Docker
* Docker compose plugin
* Watchtower running as a container (any release)

### Getting Started: <a href="#getting-started" id="getting-started"></a>

First, create a workspace to organise the configuration

```
mkdir container_monitoring 
cd container_monitoring
```

&#x20;

Now, download the configutation files, we have this hosted on github.

```
wget https://raw.githubusercontent.com/kaleidoscope-blockchain/config/main/monitoring_files.tar
```

Unarchive the files downloaded,

```
tar -xvf monitoring_files.tar
```

Finally starting up the dashboard, this is done with

```
docker compose up -d
```

Note: you can pass the option -d as exemplified in above command, to run in detached mode

&#x20;

The dashboard can be accessed at your url\
[http://localhost:3000](http://localhost:3000/)&#x20;

```
username: admin 
password: admin
```

&#x20;

And to stop the dashboard, in the same directory

```
docker compose down
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.witnesschain.com/archive/for-the-node-operators/monitoring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
