# Build powerful monitor system with Grafana/Prometheus/Loki App Mesh can manage all app applications running on Linux and provide build-in Prometheus exporter the metrics can be used to monitor hosted application detail running behavior. Loki can be used to collect all applications and App Mesh logs. Grafana can be used as Prometheus and Loki web portal, with those components, we can build a runtime metrics and log aggregate system with a flexible GUI.

Monitor system: Grafana, Prometheus, Node Exporter, promtail, Alert Manager
## Login Grafana
Open target host
Input initial password admin/admin and change a new password for Grafana
Add Prometheus Data Source with default address(
In Grafana Explorer page, you can query App Mesh metrics
Add Loki Data Source with default address(
In Grafana Exploere page, you can query all app stdout of App Mesh managed applications and App Mesh logs
## Prometheus UI (alertmanager)
Open Prometheus WEB portal at
Query metrics: appmesh_prom_process_memory_gauge
Stop node exporter to trigger alertmanager, you will get bellow email:
```shell
docker stop script_node_exporter_1
```
### Clean docker compose started containers
```shell
cd app-mesh/script/docker
docker-compose -f docker-compose-all-in-one.yaml stop
docker-compose -f docker-compose-all-in-one.yaml rm -f
```