MySQL

What does the MySQL connector do?

The MySQL connector attempts to execute a SQL query (select 1) and logs a failure if there is an error during execution. It ensures that the returned rows are closed and returns success or failure, thus updating monitoring.

 

How to Monitor a MySQL DB on the One Platform

To set up monitoring for MySQL on the platform, follow these steps:

  1. Go to the product application where you want to add MySQL as a dependency in the platform.

  2. Click on the “Products” menu and select the desired product card.

  3. Then, click on the name of the specific application where you want to configure MySQL monitoring.

  4. Look for the section called “External Dependencies,” usually located just below the latency graph of the application.

  5. To add an already registered dependency, type the name of the dependency in the search field and select it when it appears in the list.

  6. If MySQL is not yet registered as a dependency, click on the green button with a plus (+) symbol to add a new dependency.

 

Click “Add” and a modal will appear allowing you to name the database and select the Environment. In the “Check type” field, choose the option “DB,” and in the “Method” field, select “MySQL.” After selecting the method, a field for the Healthcheck URL will appear.

 

Below is an example of string for Postgres:

e.g., USER:PASSWORD@tcp(HOST:PORT)/DATABASE

Note: For security reasons, it is not permitted to enter an IP in the healthcheck field. To monitor an IP, you need to enter it in a secret and use it in healthcheck

What does the MySQL connector do?

The MySQL connector attempts to execute a SQL query (select 1) and logs a failure if there is an error during execution. It ensures that the returned rows are closed and returns success or failure, thus updating monitoring.

 

How to Monitor a MySQL DB on the One Platform

To set up monitoring for MySQL on the platform, follow these steps:

  1. Go to the product application where you want to add MySQL as a dependency in the platform.

  2. Click on the “Products” menu and select the desired product card.

  3. Then, click on the name of the specific application where you want to configure MySQL monitoring.

  4. Look for the section called “External Dependencies,” usually located just below the latency graph of the application.

  5. To add an already registered dependency, type the name of the dependency in the search field and select it when it appears in the list.

  6. If MySQL is not yet registered as a dependency, click on the green button with a plus (+) symbol to add a new dependency.

 

Click “Add” and a modal will appear allowing you to name the database and select the Environment. In the “Check type” field, choose the option “DB,” and in the “Method” field, select “MySQL.” After selecting the method, a field for the Healthcheck URL will appear.

 

Below is an example of string for Postgres:

e.g., USER:PASSWORD@tcp(HOST:PORT)/DATABASE

Note: For security reasons, it is not permitted to enter an IP in the healthcheck field. To monitor an IP, you need to enter it in a secret and use it in healthcheck