MI Console
Introduced in version 7.0.1, the MI Console is designed to bring most of the command-line functionality into a user-friendly interface, making it easier to administer the Metric Insights application. Key tasks such as managing SSL certificates, authentication settings, user synchronization, and backups can now be handled directly through the UI. Future updates will continue expanding these capabilities to ensure nearly all administrative functions can be managed through the MI Console.
Table of contents:
Access MI Console
1. Grant Access to MI Console
NOTE:
- Access to MI Console can only be granted via
mi-console-access
tool. - Only Admin users can be granted access to MI Console.
- Access the web container:
mi-web
- Execute
mi-console-access allow <user>
providing an actual username
You can also revoke user's access to MI Console by executing the command: mi-console-access deny <user>
.
2. Verify the Result
Access Admin > Users & Groups > User
If the access has been granted, a note will be displayed stating that the user has MI Console access.
3. Log In to MI Console
Access https://<MI hostname>/console/
or Admin > Status Monitor > System Stats > MI Console link
- Enter credentials of Admin user who has been granted access to MI Console
- [Sign in]
4. Authorize via 2FA
During the first log in you will be asked to enable two-factor authentication (2FA):
- Scan the QR code on your authentication app, e.g., Google Authenticator
- NOTE: 2FA is required for every action which changes the state of the system or MI configuration. Information about such actions is stored in Audit Log.
- Enter Validation Code from 2FA app
- [Verify]
Overview
The Overview tab displays information about all MI application services, including:
- their status,
- RAM, CPU, and disc space usage,
- general information, as well as events related to those services.
Services
NOTE: The Seed node may still appear in the Services list, even if it no longer exists, if the system was upgraded from v6. This happens because the system retains data on previously configured services, including outdated ones.
- Click [+] to expand full information about a service
- The top pane displays the general information about the service
NOTE: The time is displayed in the MI application's timezone.
- You can [Restart] the service from the UI
- You can set the interval for RAM and CPU graphs, the default value is 10 minutes
- Disk Space Usage displays information about volume's path, filesystem type of the volume, and information about disk usage
Logs
NOTE: System Logs contain logs from opt/mi/log
, Dataprocessor Logs contain logs from opt/mi/log/dataprocessor
.
Available download options are:
- [Download All Logs],
- Select a log file from the list and [Download Selected Log]
Plugins & Drivers
- The first three tabs display information about Plugins, Drivers and Libs used by the MI application
- You can upload External Libs on the corresponding tab
- The last tab BI Tools can be used to ping BI tools' servers and ports to check connectivity
Patches
On this tab you can upload patches, view the list of applied ones, and download Patcher logs.
Backups
All Backup Methods from v6 are available here after update.
- [+ New Backup Method]
- Enter a Name for the Backup
- Destination: Select the type of location where the Backup will be stored
This example illustrates creation of a locally stored Backup. Backups can also be stored on:
See the corresponding sections for examples.
- URI: Enter the path under which the Backup will be stored
- By default, backups are stored locally in the
/opt/mi/backup
directory inside theweb
container - [Save]
Backup Methods
Add a Scheduled Backup
- Locate the created System Backup and click on the gear icon
- [+ New Scheduled Backup]
- Select Backup Type:
- Full: the default Backup type. Both files and database data are included in the Backup
- Database: Only database data is included in the Backup
- Files: Only files are included in the Backup
NOTE: See Scheduled Backup Types for details.
- Exclude Dataset Tables from Backup: exclude Dataset data from the Backup. This option is applicable for Full and Database Backup types
- Set Frequency of Backup
- Set Backup Retention by:
- Maximum number of Backups in the system
- Time of keeping Backups
- Click [Save], the created schedule appears under the Scheduled Backups grid
- You can click [Backup Now] to create a new Backup immediately, out of the set schedule
Scheduled Backup Types
Note: As a best practice, the recommendation from MI is to choose the Full backup type. The other backup options "Database" and "Files" exist for a more specific use-case where a full backup may not be needed (e.g., to save disk space for some specific reason where only a partial backup is needed). Such cases are rare - in general there should be no need to avoid making a full backup.
Full (recommended): an all-inclusive backup that contains sqldump files for all tables in both the application database (Dashboard db) as well as all tables in dataset storage (Dashboard dataset) & all critical application data and configuration files from the MI filesystem. A full backup can be taken and restored in a completely new environment whereas the same is not true of the other two partial backup options listed below, which is why it is the preferred method.
Database: produces a backup.tar.gz
file that contains strictly mysqldumps of the application database (Dashboard db) + the Dataset storage database (Dashboard dataset). Using the "Database" backup option would not include copies of critical application configuration files - it's simply a backup of the MI databases and does not include any files from the MI filesystem. This is a partial backup method that has a limited purpose with few applicable use-cases.
Files: the contents included in the "Files" backup option are a mix of different application data and configuration files such as report and metric data points, charts, visualizations, etc. Additionally, the files included in the backup would also consist of any documents or manually uploaded element images in MI, the UI themes, colors, and fonts, thumbnail images for the tiles, and some configuration files such as const.php
which is a copy of all System Variables and their values at the time the backup was taken, and also a stamp.json
file that gets included in the tarball when a "Files" backup is taken that is basically a map of the database hostname, port, and credentials that were used to take the backup. There are also additional files critical to the MI filesystem that are included in both the "Full" and "Files" backup options.
Configuration
Cron Tasks
NOTE: The CRON Command is not validated by the system and the user is responsible for the input.
- [+ Add task]
- Fill in the cron task details, hover over the info icon to see the details for each field's accepted format and values
- [Save]
Cron Tasks tab can be disabled by setting env variable DISABLE_CRON_UI
to true
under /opt/mi/config/deployment/credentials/console.env
and re-deploying the container:
- Log in to MI application host as a root user
$ sudo -i
- Access
/opt/mi/config/deployment/credentials
directory
cd /opt/mi/config/deployment/credentials
- Access
console.env
and setDISABLE_CRON_UI
totrue
:
$ nano console.env
...
DISABLE_CRON_UI=true
...
- Re-deploy the console container:
$ mi-control rm --stop console
$ mi-control up -d console
Timezone
After installing the MI application, you can change the MI timezone and MySQL timezone here. This functionality is equivalent to using the --timezone
installer option. Information about timezone changes in Metric Insights is recorded in the audit.log
.
NOTES:
- Changing the timezone will restart the corresponding services.
- Changing the Metric Insights timezone specifically will restart all the services including the MI Console.
- Changing the MySQL timezone only affects the local MySQL instance.