Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name

v0.0.1 · public · Published almost 2 years ago

Asset Definition
Release Notes
Release Assets


Sensu check/metrics collector for MySQL


Help Text Output

  mysql-check [flags]
  mysql-check [command]

Available Commands:
  help        Help about any command
  version     Print the version number of this plugin

  -h, --help                   help for mysql-check
      --insecure-skip-verify   If true, use TLS but skip chain & host verification for custom TLS config
  -s, --servers strings        A list of one or more server connection URLs in DNS Format
      --tls-ca string          Path to a ca.pem file for custom TLS config
      --tls-cert string        Path to a cert.pem file for custom TLS config
      --tls-key string         Path to a key.pem file for custom TLS config

Use "mysql-check [command] --help" for more information about a command.


The servers argument is a comma delimited list of server connection strings in DSN Format. Example: sensu@tcp(localhost:3306)/mysql?timeout=3s

In order to take advantage of advanced TLS configuration provided by the --tls-* configuration flags, set the tls parameter in the server connection string to custom.

Example: mysql-check --servers "sensu@tcp(" --tls-ca=/opt/tls/ca.pem --tls-cert=/opt/tls/client.pem --tls-key=/opt/tls/client-key.pem

Test Suite

The current test suite depends on a running mysql instance listening for tcp connections locally on the default port.

Use the docker-compose.yml stack to stand this up.

docker-compose up -d

go test ./...

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.


You must be signed in to report this asset.

Sign In with Github



Either download the source code:

Download Source

Or download the asset definition: