Monitoring

Have a Question?

The Monitoring Role is made up of the Prometheus and Grafana software. Grafana offers dashboards, but manual configuration of the repository needs Bootstrap Carbonio.

The bootstrap command will run a variety of operations and configure the node. At the end, you will be presented with a menu, and if you have previously configured everything, all you need to do is click y to confirm.

During the procedure, you must submit these values, which may be obtained from the first Mesh and Directory node.

  • Ldap master host is the FQDN of the first Mesh and Directory node, for example, ldap-mstr.example.com.
  • The Ldap Admin password is received from the first Mesh and Directory node.
Join Carbonio Mesh.

Carbonio Mesh will install as an agent, connecting and communicating with the server. Launching the command creates the agent’s configuration.

The command will:

  • ask for the IP address and netmask of the current node.
  • Request the Carbonio Mesh secret, which can be found in the file /var/lib/service-discover/password on the Directory Leader node.

After the configuration has been finished successfully, run the following command again using the secret.

To finish the installation, restart the Prometheus service with:

Grafana Installation and Configuration

As previously stated, Grafana requires some user intervention before and after installation to install certain essential plugins, establish data sources, and import them from Carbonio CE.

Grafana Installation
Before installing Grafana, get the Grafana GPG key, add it to your APT installation’s list of trusted keys, and include the Grafana repository in your APT sources.
Install Grafana.
Start the Grafana service and check its status. If everything is working well, you may allow the service to automatically start Grafana at boot.
Log into Grafana.
The Grafana portal may be accessed via port 3000 of the node where you deployed the Monitoring Role, which we presume is http://srvmon.example.com:3000/.

You can log in for the first time with the following credentials: User = admin; password = admin.
Grafana Plugin Installation
Some dasboards require a plugin to operate, therefore we install them:
  1. World map panel
  2. Treemap panel
  3. Restart Grafana to utilise the new plugins.
Grafana datasource configuration
  1. Access the Grafana web interface via http://srvmon.example.com:3000/.
  2. Log into Grafana with your credentials.
  3. In the left sidebar, click Connections, then Data Sources.
  4. Click Add New Data Source.
  5. Select Prometheus as the kind. Select “Prometheus” from the available data sources and give it a name. Then, configure the Prometheus connection. Fill up the Prometheus necessary information, including your Prometheus server URL (e.g., http://localhost:9090).
  6. Click the “Save & Test” button to ensure that the Prometheus connection was appropriately configured. If the connection was successful, save the data source.
Import carbonio dashboards.
Grafana dashboards are visual representations of data that give a complete and real-time overview of numerous metrics and information. Dashboards are fully customisable, with panels displaying graphs, tables, heatmaps, and other visualisations depending on data from linked data sources. Zextras designed several specialised dashboards required for pleasant monitoring, which can be readily imported from the Grafana marketplace as follows:
  1. Access Grafana’s web interface.
  2. Select “Dashboards” on the left sidebar.
  3. To launch the import page, click “New” → “Import”.
  4. Paste the dashboard ID that you wish to import.
  5. Clicking “Load” will cause the system to retrieve dashboard information.
  6. If required, set import parameters such as a data source and other choices.
  7. Click “Import” to finish the import procedure.
  8. After a successful import, navigate to the “Dashboards” area and pick the imported dashboard to see.
These instructions will let you easily import a dashboard into Grafana utilising its unique ID.