Watch mysql replication status and notify riemann of the output.
build dependencies (ubuntu names):
- Go compiler (>= 1.11)
For now, riemann-mysql is a source only distribution, you may build it on linux by running make and make install.
run make package
to build a debian package with fpm
, you can
override the snapshot type version by supplying a VERSION environment
variable
The configuration file expects a simple key = value
format,
empty lines are ignored, lines starting with a hash are ignored.
The following configuration directives are valid:
hostname
: hostname to use, otherwise,gethostbyname
's result is usedinterval
: interval at which to run the querydelay
: delay to add to the interval before marking an event as expiredtags
: tags to add to the generated eventmysql_host
: mysql host to contactmysql_user
: mysql user to connect asmysql_password
: mysql password to usemysql_database
: mysql database to bind tomysql_port
: tcp port the mysql instance lives onriemann_host
: host the riemann instance lives onriemann_port
: tcp port the riemann instance lives on
riemann-mysql bundles an upstart script, letting you interact with it using the service command.
This is a bare-bones release which makes the following assumptions:
- you have a tcp-server running on your riemann instance
- your mysql and riemann servers are reachable through ipv4