How to configure more than one mysql instance

The Instana agent supports different user/passwords for multiple MySQL instances. 
This is an example of how they can set up several instances of MySQL in docker:

#Adding an example here: 
#agent config: 
com.instana.plugin.mysql: 
user: 
configuration_from: 
type: env 
env_name: INSTANA_USER 
password: 
configuration_from: 
type: env 
env_name: INSTANA_SIFRA 
#start 2 mysql instances in docker: 
# instanca 1 
docker run \ 
--name mysql1 \ 
-e MYSQL_ROOT_PASSWORD=instana123 \ 
-e INSTANA_USER=user1 \ 
-e INSTANA_SIFRA=pass1 \ 
-d mysql:5.7.38 
# instanca 2 
docker run \ 
--name mysql2 \ 
-e MYSQL_ROOT_PASSWORD=instana123 \ 
-e INSTANA_USER=user2 \ 
-e INSTANA_SIFRA=pass2 \ 
-d mysql:5.7.38
Have more questions? Submit a request

Comments