3.4. Monitoring Storage Cluster Remotely

You can monitor your storage cluster via Prometheus remotely. To do this, you need to open a TCP port for Prometheus API to be accessible from the outside.

To open a port, do the following:

  1. On the INFRASTRUCTURE > Networks screen, click Edit and then Create traffic type.

  2. In the New traffic type window, specify a custom name in the Name field and 9090 in the Port field.

    ../_images/stor_image88_vz.png
  3. Click Create.

  4. Add the newly created traffic type to your public network by ticking the corresponding checkbox.

  5. Click Save to apply the changes.

You can now access the built-in Prometheus web-based user interface at http://<admin_panel_IP_address>:9090. For more information on using Prometheus, refer to its documentation.

If you have an external Grafana account and want to use it for monitoring Virtuozzo Infrastructure Platform, you can add Prometheus as a data source as follows:

  1. Log in into your Grafana user interface.
  2. Click the cogwheel icon in the left menu and select Data Sources.
  3. On the Data Sources tab, click Add data source.
  4. On the Data Sources / New screen, specify the following parameters:
    1. Enter a custom data source name in the Name field.
    2. Set Type to Prometheus.
    3. Enter http://<admin_panel_IP_address>:9090 in the URL field.
  5. Click Save & Test.

If the specified parameters are correct, the Data source is working message will appear.

../_images/stor_image89.png

Using the newly added Prometheus data source, you can import the default Grafana dashboards from Virtuozzo Infrastructure Platform or create new ones.