# Statistics

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

The analytics-service processes information accessible from the Hedera mirror nodes and collects various statistics

## **1. Configuration**

The service starts by navigating through Hedera structures collecting information from the root ‘topic’ which is specified in the environment variable ***INITIALIZATION\_TOPIC\_ID*** environment variable.

Owing to the high resource load the refresh of the statistical information is performed periodically. The ***ANALYTICS\_SCHEDULER*** environment variable allows to specify the time period. By default the refresh occurs weekly.

## 2. Launching UI Statistics

The docker command used to launch Statistics in [localhost:3000](http://localhost:3000/) is

```
docker-compose -f docker-compose-analytics.yml up -d --build
```

## **3. UI**

By default the system loads the data of the last successful refresh, and the delta with the prior refresh (if exists).

The UI allows users to select a particular prior snapshot of the data instead of the default last refresh.

![image1.png](/files/XtNrMrGkhxxK2YZMEjmv)

The top part of the page displays numerical statistics of the selected data snapshot (‘refresh’) and

the bottom part of the UI displays top 10 records for the selected statistic.

<figure><img src="/files/7hPpoBbQYuGOMqbK6HLp" alt=""><figcaption></figcaption></figure>

The sorting criteria can be changed by clicking on the statistics displayed in the top section of the page, or by selecting an option in the drop down list.

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

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

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

The latest statistical refers can be exported in the format of the Excel file by clicking on the ‘Export’ button in the corresponding section of the UI.

{% hint style="info" %}
**Note:** The system exports the current state of the statistical data, not the selected refresh.
{% endhint %}

## 2. Demo Video

[Youtube](https://youtu.be/e6U68FtEbG8?si=vmIw7XY8Box_G3o4\&t=330)


---

# 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://guardian.hedera.com/guardian-dev/guardian/standard-registry/usage-statistics/statistics.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.
