presto_exporter
This Prometheus exporter can scrape the metrics from presto cluster, and it should be installed in the coordinator server of presto cluster.
Table of Contents
Compatibility
Support Presto version 0.177 (and later).
Dependency
Download
Binary can be downloaded from Releases page.
Compile
build binary
It can use go to binary by youself
go build presto_exporter.go
run binary
./presto_exporter [flags]
Docker
run docker
To run the presto exporter as a Docker container, run:
docker run yahoojapan/presto-exporter:master [flags]
Flags
This image is configurable using different flags
Flag name | Default | Description |
---|---|---|
web.listen-address | :9483 | Address to listen on for web interface and telemetry |
web.telemetry-path | /metrics | Path under which to expose metrics |
Help on flags:
./presto_exporter --help
Metrics
Documents about exposed Prometheus metrics.
For details on the underlying metrics please see Presto.
Topics
Prometheus Metrics Details
Name | Exposed informations |
---|---|
presto_cluster_running_queries |
Total number of queries currently running |
presto_cluster_active_ workers |
Total number of active worker nodes |
presto_cluster_total_input_rows |
Total number of input rows processed |
presto_cluster_queued_queries |
Total number of queries currently queued and awaiting execution |
presto_cluster_running_drivers |
Moving average of total running drivers |
presto_cluster_total_input_bytes |
Total number of input bytes processed |
presto_cluster_blocked_queries |
Total number of queries currently blocked and unable to make progress |
presto_cluster_reserved_memory |
Total amount of memory reserved by all running queries |
presto_cluster_total_cpu_time_secs |
Total number of CPU time |
Metrics output example
# HELP presto_cluster_active_workers Active workers of the presto cluster.
# TYPE presto_cluster_active_workers gauge
presto_cluster_active_workers 36
# HELP presto_cluster_blocked_queries Blocked queries of the presto cluster.
# TYPE presto_cluster_blocked_queries gauge
presto_cluster_blocked_queries 0
# HELP presto_cluster_queued_queries Queued queries of the presto cluster.
# TYPE presto_cluster_queued_queries gauge
presto_cluster_queued_queries 0
# HELP presto_cluster_reserved_memory Reserved memory of the presto cluster.
# TYPE presto_cluster_reserved_memory gauge
presto_cluster_reserved_memory 5.55661368e+08
# HELP presto_cluster_running_drivers Running drivers of the presto cluster.
# TYPE presto_cluster_running_drivers gauge
presto_cluster_running_drivers 9413
# HELP presto_cluster_running_queries Running requests of the presto cluster.
# TYPE presto_cluster_running_queries gauge
presto_cluster_running_queries 1
# HELP presto_cluster_total_cpu_time_secs Total cpu time of the presto cluster.
# TYPE presto_cluster_total_cpu_time_secs gauge
presto_cluster_total_cpu_time_secs 4.1377104e+07
# HELP presto_cluster_total_input_bytes Total input bytes of the presto cluster.
# TYPE presto_cluster_total_input_bytes gauge
presto_cluster_total_input_bytes 1.100504485326412e+15
# HELP presto_cluster_total_input_rows Total input rows of the presto cluster.
# TYPE presto_cluster_total_input_rows gauge
presto_cluster_total_input_rows 7.794104814874e+12