Accessing and Using the Monitoring Service UI

Monitoring Service is a special process for displaying registered application services and resources usage statistics, collecting metrics from all application services, viewing event history, and providing the access to all application logs.  The service supports downloading a selected log file or all logs in a single compressed file.

The document contains the information on how to access and login to the Monitoring Service UI for the following installation types:

  1. Simple Installation
  2. Orchestration Installation for:

A description of the Monitoring Service UI can be found in the corresponding section.

1. Simple Installation

1.1. Accessing the Monitoring Service UI

The Monitoring Service UI is available at https://<address>:8081/status. If there is a load balancer or a proxy server in front of the application server, then it is required that 8081 port be opened externally. If it is not possible, then you can connect to the Monitoring Service via the server address. If ssh connection is available, forward the Monitoring Service port to a local host; e.g.:

$ ssh -L 8081:127.0.0.1:8081 root@<address> -vv 
Click to copy

1.2. Logging to the Monitoring Service UI

If you established custom credentials during the application installation, then use them to login.  If not, by default, the credentials are the following:

Username: admin
Password: <some_auto_generated_value>
Click to copy

At any time,  the username and password can be changed using the following command:

--monitoring-username <custom_username> --monitoring-password <custom_password>
Click to copy

If you do not remember the password, there are three ways to retrieve it:

2. Orchestration Installation

2.1. Docker Swarm

2.1.1. Accessing the Monitoring Service UI

The Monitoring Service is available at https://<swarm_master_node_address>:8081/status. If there is a load balancer or a proxy server in front of the Metric Insights application nodes, then the 8081 port must be opened externally. If it is not possible, then you can connect to the Monitoring Service via the address of Docker Swarm master node.  If you can connect to Docker Swarm master node via ssh, then you can forward the Monitoring Service port to a local host; e.g.:

$ ssh -L 8081:127.0.0.1:8081 root@<swarm_master_node_address> -vv
Click to copy

The Monitoring Service UI is available at https://127.0.0.1:8081/status.

2.1.2. Logging to the Monitoring Service UI

The default username is admin.  You can retrieve the password from monitoring.env file.  Alternately, connect to Docker Swarm master node and run the command:

$ docker exec $(docker ps -q -f name=mi_monitoring) cat /var/run/secrets/monitoring.env | grep MONITORING_PASSWORD
Click to copy

2.2. Kubernetes or OpenShift

2.2.1. Accessing the Monitoring Service UI

The Monitoring Service is available at https://<dns>/status.

2.2.2. Logging to the Monitoring Service UI

The default username is admin. There are  four ways to retrieve the password:

2.3. AWS ECS

2.3.1. Accessing the Monitoring Service UI

The Monitoring Service is available at https://<load_balancer_dns>:8081/status or at https://<dns>:8081/status if a DNS points to <load_balancer_dns>.

2.3.2. Logging to the Monitoring Service UI

If the application is deployed by Terraform, retrieve the credentials from variables.tf file, in monitoring_username and monitoring_password variables.

In case the application is deployed by the CloudFormation, the credentials are set during the creation of the CloudFormation stack. You can retrieve the username and password using either:

2.3.2.2. Retrieve the Secret Value
  1. Click ECS-Test-MONITORING_PASSWORD
  2. [Retrieve secret value]

2.4. The Monitoring Service UI

The monitoring data is stored in Docker container memory. If the Monitoring container is restarted, all stored data is erased!

After  login,  the following information is available:

  1. Nodes: displays registered application services with uptime and status information
  2. Recent events: displays recent events with registered application services
  3. System logs:  provides the functionality to download a selected log file or all logs in a single compressed file

 

If you click any node, you can see more detailed information about it, e.g.:

  1. The time period for data, displayed on the chart, can be customized. "Period" drop-down menu suggests the following options: 10 minutes, 30 minutes, 1 hour, 12 hours, One day.