Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the directory $MZ_HOME/scripts/str-templates/system-insight.
     

  2. Run the following script to set up InfluxDB:

    Code Block
    $ sudo ./si_influxdb_setup.sh

    If required, you can modify the default username and password, and you can also change the database name before running the script. The variables to change in the script are INFLUX_ADMIN_USR, INFLUX_ADMIN_PWD and INFLUX_SCHEMA.
     

  3. To ensure that the InfluxDB instance works as it should, use the following influx command:

    Code Block
    $ sudo influx -username <username> -password <password>
    $ show databases

    The output should be the following:

    Code Block
    name: databases
    name
    ----
    mz
    _internal


    Alternatively, you can use the following cURL command:

    Code Block
    $ curl -XPOST -u <username>:<password> http://<host name>:8086/query --data-urlencode "q=SHOW DATABASES"

    The output should be the following:

    Code Block
    {"results":[{"statement_id":0,"series":[{"name":"databases","columns":["name"],"values":[["mz"],["_internal"]]}]}]}


  4. Run the following script to set up Grafana:

    Code Block
    $ sudo ./si_grafana_setup.sh

    If required, you can modify the default username and password before running the script. The variables to change in the script are GRAFANA_USR and GRAFANA_PWD.


  5. If you want to add sample dashboards, run the script again with the flag add-dashboards:

    Code Block
    $ sudo ./si_grafana_setup.sh add-dashboards

    Once successfully installed browse to http://<host name>:3000.

    Note
    titleNote!

    By default, Grafana is installed using http. If you want to use Grafana over https, see the section, Grafana Over https, in 2.1.3 Access Grafana via Desktop or Web UI.


  6. Run the following script on the Platform instance, with the si-topo flag flag to run the topo commands required to set up with up Image Added with System Insight:

    Code Block
    $ ./si_basic_setup.sh si-topo

    If you want to access Grafana from the Desktop via Tools, or via theWeb the Image AddedWeb UI, http://<platform host>:<web interface port>/mz/, modify the property GRAFANA_URL as follows before running the script:

    Code Block
    GRAFANA_URL='http://<host name>:3000'

    For further information an this method of accessing Grafana from Image Added, see 2.1.3 Access Grafana via Desktop or Web UI.
     

  7. You are then prompted to restart the Platform and picos, and startup the services:

    Code Block
    $ mzsh restart platform
    $ mzsh system restart
    $ mzsh service start


  8. To set up the filters, run the script with the si-basic-filters flag and your credentials. This step is not obligatory but provides a setup in which system metrics are produced for InfluxDB:

    Code Block
    $ ./si_basic_setup.sh si-basic-filters <username> <password>

    Steps 6 - 8 are required as system insight service must be up and running to be able to create profiles and filters. 


Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: