debeando/agent-mysql
Collector for MySQL metrics
36
Database monitoring tool designed for small environments, adapted for Kubernetes and send metrics to InfluxDB.
This image is maintained by DeBeAndo and will be updated regularly on best-effort basis. The image is based on Alpine Linux and only contains the build result of this repository.
To run container:
docker run \
--name debeando-agent-mysql \
--env DEBUG=true \
--env INTERVAL=10 \
--env INFLUXDB_HOST="http://com-env-influxdb-observability-node01.aws.com" \
--env INFLUXDB_TOKEN="abc123cde456==" \
--env MYSQL_HOST="com-env-mysql-stack-node01.aws.com" \
--env MYSQL_USER="monitor" \
--env MYSQL_PASSWORD="<monitor-pass>" \
--env SERVER="com-env-mysql-stack-node01" \
debeando/agent-mysql
Create a monitor
user to allow access to agent.
CREATE USER monitor@'%' IDENTIFIED by '<monitor-pass>';
ALTER USER monitor@'%' WITH MAX_USER_CONNECTIONS 5;
GRANT REPLICATION CLIENT ON *.* TO monitor@'%';
GRANT PROCESS ON *.* TO monitor@'%';
GRANT SELECT ON *.* TO monitor@'%';
Please, change default password <monitor-pass>
.
When you start the agent-mysql
image, you can adjust the configuration of the agent instance by passing one or more environment variables on the docker run command line.
true
value, by default value is false
.10
.docker pull debeando/agent-mysql