# Monitoring and Reporting

## Introduction

Monitoring the status of programs and registries is vital for program administrators. With OpenG2P's monitoring and logging tools, program administrators can&#x20;

1. Monitor programs via visual dashboards
2. Generate reports from the PBMS
3. Monitor system health in real-time&#x20;

The following tools are provided

* Integration of [Apache Superset](https://superset.apache.org/) for visual pre-configured **dashboards**
* Reporting Framework for real-time updates and **slicing and dicing of data**
* Prometheus and Grafana for **system health** monitoring
* Rancher, Fluentd, OpenSearch integration for **system logs** monitoring

## Apache Superset&#x20;

Apache Superset offers SQL query based datasets and charts for visualisation of data. OpenG2P offers pre-configured dashboards for visualisation. Refer to the [deployment instructions](https://docs.openg2p.org/1.2/deployment/openg2p-modules-deployment/reporting-deployment).

<figure><img src="https://252389534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwMntokukpQZjoCcqMwL%2Fuploads%2FrLBSb9jWOcNk4aOtCpdp%2Fapache-superset-dashboard.png?alt=media&#x26;token=8e9a6938-d92b-464e-b134-c894954b6fad" alt=""><figcaption></figcaption></figure>

## Real-time reporting framework

<figure><img src="https://252389534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwMntokukpQZjoCcqMwL%2Fuploads%2FLRF3qceNIX8ysAQAqvs6%2Freporting-dashboard.png?alt=media&#x26;token=5e2744ff-32bf-4332-a0ec-252e908370df" alt=""><figcaption></figcaption></figure>

Details of this infrastructure may be found [here](https://github.com/mosip/reporting).&#x20;

## Prometheus and Grafana

<figure><img src="https://252389534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwMntokukpQZjoCcqMwL%2Fuploads%2FOorwW8yNNpU1lWbFvgUb%2Fprometheus-grafana.png?alt=media&#x26;token=1f13cc83-15ba-478b-92fb-d6689786751e" alt=""><figcaption></figcaption></figure>

## Logs monitoring via Fluentd and OpenSearch

<figure><img src="https://252389534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwMntokukpQZjoCcqMwL%2Fuploads%2Fp7is5Oqnf95riScKsxhp%2Fopensearch-log-dashboard.png?alt=media&#x26;token=70f8f283-5788-495a-9469-8f01041f7d88" alt=""><figcaption></figcaption></figure>

For deployment of logging infrastructure refer to [Logging & OpenSearch Deployment](https://docs.openg2p.org/1.2/deployment/external-components-setup/logging-and-opensearch-deployment).
