2.1.3 Access Grafana via Desktop or Web UI

If you want to be able to access Grafana via the Desktop from Tools or via the  Web UI (http://<platform host>:<web interface port>/mz/), you have 2 options:

  1. You can modify the property GRAFANA_URL in the si_setup_script before running the script, as described in step 6 in 2.1.1 Install System Insight with InfluxDB using Scripts.

    OR

  2. At any time after installing System Insight, you can use the mzsh topo command as shown below:

    $ mzsh topo set services:custom/val:system-insight.si-instance.config.grafana-url http://<host name>:3000

Grafana via Desktop

To be able to access Grafana from the Desktop, the System insight service must be running and the property grafana-url mentioned above must be set when starting the Desktop.

In Desktop, go to Tools, and select System Insight. You are directed to the Grafana login page.

Grafana via Web UI

For System Insight to be visible from the  Web UI, the property grafana_url mentioned above must be set.

Go to the  Web UI, located at http://<platform host>:<web interface port>/mz/, and select System Insight from the Dashboard.

System Insight in the Web UI

Grafana Over https

If you require extra security, the option to use Grafana over https is available. However, you require a certificate which is not provided. When you have your certificate in place, take the following steps:

  1. Go to the directory MZ_HOME/scripts/str-templates/system-insight, and open the grafanai.ini file.
     
  2. In the Server section, modify the text as follows and save:
     Change this line:

    ;protocol = http

    to the following: 

    protocol = https

    Change these lines:

    # https certs & key file
    ;cert_file =
    ;cert_key =

    to the following: 

    # https certs & key file
    cert_file = /path/to/file/server.crt
    cert_key = /parth/to/file/server.key
  3. Restart the grafana service.
    Go to https://<your grafana installation url>:3000/ and verify that https is working.