Monitoring Node Status Using the External mysqld_exporter
The mysqld_exporter will respond to requests on port 9104, path /metrics
The mysqld_exporter command will read MySQL server connection information from the ~/.my.cnf file. Since the default listener port for
the MySQL server is 13306, the file must contain at least:
shell> cat ~/.my.cnf
[client]
port=13306
user={tungsten_database_user_here}
password={tungsten_database_password_here}
The tmonitor command is the best way to manage the mysqld_exporter binary.
For example, to test a running mysqld_exporter service:
shell> tmonitor --mysqld test | wc -l
1813
shell> tmonitor --mysqld test | head -10
====================================================================================================
== Metrics for the mysql exporter:
====================================================================================================
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 1.0051e-05
go_gc_duration_seconds{quantile="0.25"} 1.4436e-05
go_gc_duration_seconds{quantile="0.5"} 3.3925e-05
go_gc_duration_seconds{quantile="0.75"} 6.3136e-05
go_gc_duration_seconds{quantile="1"} 0.000551545
To start the mysqld_exporter binary (only), and then get the status:
shell> tmonitor start --mysqld
shell> tmonitor status --mysqld
mysqld exporter running ok
warning
The mysqld_exporter command is not included in the PATH unless you add it manually.
The mysqld_exporter binary is located in the $CONTINUENT_ROOT/tungsten/cluster-home/prometheus directory.