You can connect your own server with Grafana to VMmanager. To ensure that the connection settings are not deleted when you update the platform, you need to add the settings information to the Docker configuration file.
How to connect
Create the docker-compose.yaml file with the following contents:Comments
8080 — TCP port for Grafana connection
Encode the file in base64:
Add the contents of the encoded docker-compose.base64 file to the Patches/carbonapi/base64_compose section of /opt/ispsystem/vm/config.json on the server with VMmanager. After insertion, the Patches section should look like this:
For convenience, you can use tools to work with JSON files. For example, using JSON formatter you can convert config.json to a readable form, insert the necessary information, and then return the file to the minimized format.
Execute the command:
If the settings are applied successfully, the output of the command will indicate that the carbonapi container has been recreated:
- Add a data source to Grafana:
- Enter Configuration → Data sources → Add data source → Graphite.
- Specify the connection parameters. In the URL field, enter the IP address of the server with VMmanager and the connection port specified in step 1. For example, .
Press Save & test. If the connection is successful, the message "Data source is working" appears, if unsuccessful - "Bad gateway".