3. Contents
• Part 1. How Alluxio Metrics System
Works
• Part 2. How to Implement a custom
Alluxio Sink
• Part 3. How to Set Up Monitoring of
Alluxio in 10 mins
7. Alluxio Metrics System
• Two Types of Metrics:
• Cluster Metrics : Aggegated from Workers and Clients
• Process Metrics: Collected by Each Alluxio Process
Master
Cluster Metrics
Process Metrics
Worker
Worker
Worker
Client
Client
14. Passive Sink : PrometheusMetricsServlet
• getHandler() called by master or worker
• Work as service
• Metrics are available only when requested
E.g. MasterProcess
15. Sink Extension
• Passive or Active ?
• XmlSink as an example of Active type: Print metrics in XML format to a specified path.
• Implement Sink interface
• Construct a XmlReporter to report metrics in XML format
• Config to enable XmlSink
conf/metrics.properties
16. Part 3. How to Set Up Monitoring for alluxio in 10
minutes
17. Alluxio Web UI Monitoring
Web UI metrics page
Convenient but doesn’t work well sometimes…
18. Alluxio Monitoring with Prometheus and Grafana
How it works ?
1. Prometheus scrapes metrics from Alluxio servers and transforms to time series data
2. Grafana server get metrics using the PromQL
3. Grafana web UI displays metrics in dashboards
What we need to do ?
1. Install and start Prometheus and Grafana Server
2. Add Alluxio Jobs to Prometheus
3. Download and import Grafana dashboard
4. Modify variables of dashboard template