Monitoring Status Using Prometheus Exporters
Continuent has introduced basic support for using Prometheus and Grafana to monitor Tungsten nodes. As of Tungsten software v6.1.4, five key Prometheus exporters have been added to the distribution.
The exporters will allow a Prometheus server to gather metrics for:
The underlying node "hardware" using an external
node_exporterbinary added to the distribution.The running MySQL server using an external
mysqld_exporterbinary added to the distribution.The Tungsten Replicator using built-in functionality in the
replicatorbinary.
tmonitor is available to assist with the management and testing of the exporters.
To manually test any exporter, get the URL http://{theHost}:{thePort}/metrics either via the curl command or a browser.
shell> curl -s 'http://localhost:9100/metrics' | wc -l
916
shell> curl -s 'http://localhost:9100/metrics' | head -10
# 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.0129e-05
go_gc_duration_seconds{quantile="0.25"} 1.3347e-05
go_gc_duration_seconds{quantile="0.5"} 1.8895e-05
go_gc_duration_seconds{quantile="0.75"} 3.095e-05
go_gc_duration_seconds{quantile="1"} 0.00104028
go_gc_duration_seconds_sum 10.43582891
go_gc_duration_seconds_count 173258
# HELP go_goroutines Number of goroutines that currently exist.
The below table describes the exporters and the ports they listen on.
| Exporter | Port | Description | Scope |
|---|---|---|---|
| node | 9100 | Metrics for the underlying node "hardware" | External |
| mysql | 9104 | Metrics for the MySQL server | External |
| replicator | 8091 | Metrics for the Tungsten Replicator | Internal |