Coder Social home page Coder Social logo

infrasonar / mysql-probe Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 47 KB

InfraSonar MySQL probe

Home Page: https://docs.infrasonar.com/collectors/probes/mysql/

License: GNU General Public License v3.0

Dockerfile 0.47% Python 99.53%
cesbit infrasonar monitoring mysql mysql-server

mysql-probe's Introduction

CI Release Version

InfraSonar MySQL Probe

Documentation: https://docs.infrasonar.com/collectors/probes/mysql/

Environment variable

Variable Default Description
AGENTCORE_HOST 127.0.0.1 Hostname or Ip address of the AgentCore.
AGENTCORE_PORT 8750 AgentCore port to connect to.
INFRASONAR_CONF /data/config/infrasonar.yaml File with probe and asset configuration like credentials.
MAX_PACKAGE_SIZE 500 Maximum package size in kilobytes (1..2000).
MAX_CHECK_TIMEOUT 300 Check time-out is 80% of the interval time with MAX_CHECK_TIMEOUT in seconds as absolute maximum.
DRY_RUN none Do not run demonized, just return checks and assets specified in the given yaml (see the Dry run section below).
LOG_LEVEL warning Log level (debug, info, warning, error or critical).
LOG_COLORIZED 0 Log using colors (0=disabled, 1=enabled).
LOG_FTM %y%m%d %H:%M:%S Log format prefix.

Docker build

docker build -t mysql-probe . --no-cache

Dry run

Available checks:

  • innodb
  • mysql

Create a yaml file, for example (test.yaml):

asset:
  name: "foo.local"
  check: "mysql"
  config:
    address: "192.168.1.2"
    port: 3306  # not required, default MYSQL port is 3306

Run the probe with the DRY_RUN environment variable set the the yaml file above.

DRY_RUN=test.yaml python main.py

mysql-probe's People

Contributors

joente avatar koos85 avatar

Watchers

 avatar  avatar  avatar

mysql-probe's Issues

Add metric `long_query_time` to `variables` type of `mysql` check

Is your feature request related to a problem? Please describe.
The slow_queries counter is depended in the long_query_time variable.

Therefore, it would be useful to have this metric available as well. Is is not an issue if the metric is stored in another type (variables) but within the same check can be helpful.

See:
https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time

Describe the solution you'd like
Add the metric to the variables type of the mysql check.

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.