22 May 2025 09:47 AM
This document outlines the configuration for a custom MariaDB extension. Please note the following:
This extension was developed as a proof-of-concept for MariaDB monitoring, specifically because the existing official Dynatrace extension for MySQL did not fully meet the requirements or function as expected with MariaDB in our testing environment. The development involved adapting queries from the current MySQL extension to be compatible with MariaDB. Some queries were modified where the originals did not yield the necessary information from MariaDB.
Consider this extension to be in a beta phase. While it has been tested and is functional, it may not encompass all scenarios or have the same level of polish as an officially released product.
Regarding certificates for the extension:
Should you have any questions regarding the certificate generation process or any other aspect of this extension, the official Dynatrace documentation provides clear guidance. However, feel free to reach out to me through this channel, Discord, or WhatsApp for assistance.
To ensure the proper functioning and comprehensive metric capture of your MariaDB/MySQL instance with the Dynatrace extension, the following configurations are necessary. These instructions are based on MariaDB version 10.11.9.
The following steps describe how to permanently enable the Slow Query Log and the Performance Schema. It is crucial to edit your MariaDB/MySQL server's configuration file (my.cnf or my.ini), adding the specified directives within the [mysqld] section.
This feature allows you to identify queries that exceed a defined time threshold, facilitating performance optimization.
Access the MariaDB/MySQL configuration file. Common locations are:
Add or modify the following lines under the [mysqld] section:
[mysqld] slow_query_log = ON slow_query_log_file = /var/log/mariadb/slow-query.log long_query_time = 1
The Performance Schema provides detailed instrumentation about server execution, which is essential for advanced performance monitoring.
In the same configuration file (my.cnf or my.ini), add or edit the following line under the [mysqld] section:
[mysqld] performance_schema = ON
For the modifications in the configuration file to take effect, it is necessary to restart the MariaDB/MySQL service.
Execute the following command in your terminal (superuser privileges may be required):
sudo systemctl restart mariadb
Or the equivalent command for your operating system if you are not using systemd (e.g., sudo service mysql restart).
For the remote extension to function correctly in Dynatrace, it is essential to sign it with a developer root certificate. This certificate must be deployed on the ActiveGate that will run the extension.
Required Certificate CA.PEM: (It is assumed that the certificate will be provided or linked here (inside SharedCertificates.zip) .
The original Dynatrace documentation link is a general reference on signing extensions).
Option B: Deploying a Developer Root Certificate to the ActiveGate (For local signing) If you are signing the extension locally with your own developer certificate:
Virus total Analisis: VirusTotal - File - da2f5329d551e0731af5f65794b2e5d17ab01698c9432cf6186d89939c94efd6