Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inputs.mysql): MariaDB example to include mariadb_dialect (#16159) #16160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions plugins/inputs/mysql/dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ services:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: telegraf
MYSQL_DATABASE: telegraf
MYSQL_USER: telegraf
MYSQL_PASSWORD: telegraf
command: mysqld --userstat=1
MARIADB_ROOT_PASSWORD: telegraf
MARIADB_DATABASE: telegraf
MARIADB_USER: telegraf
MARIADB_PASSWORD: telegraf
command: --userstat=1
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
percona:
image: percona
restart: always
Expand All @@ -30,12 +36,15 @@ services:
telegraf:
image: glinton/scratch
depends_on:
- mysql
- maria
- percona
maria:
condition: service_healthy
mysql:
condition: service_started
percona:
condition: service_started
volumes:
- ./telegraf.conf:/telegraf.conf
- ../../../../telegraf:/telegraf
- ./telegraf.conf:/telegraf.conf:z
- ../../../../telegraf:/telegraf:z
entrypoint:
- /telegraf
- --config
Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/mysql/dev/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
## mariadb
#[[inputs.mysql]]
# servers = ["root:telegraf@tcp(maria:3306)/"]
# mariadb_dialect = true
# gather_table_schema = true
# gather_process_list = true
# gather_user_statistics = true
Expand Down
Loading