Giter Club home page Giter Club logo

sensu-mysql-check's Introduction

mysql-check

Sensu check/metrics collector for MySQL

Usage

Help Text Output

Usage:
  mysql-check [flags]
  mysql-check [command]

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

Flags:
  -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.

Configuration

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(10.0.0.10:3306)/mydb?tls=custom" --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 ./...

sensu-mysql-check's People

Contributors

c-kruse avatar thoward avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.