Metrics

Metrics help you monitor the performance of Databricks clusters. Ganglia metrics are available by default.

You can also install Datadog agents on cluster nodes to send Datadog metrics to your Datadog account.

Ganglia metrics

To access the Ganglia UI, navigate to the Metrics tab on the cluster details page. GPU metrics are available in the Ganglia UI for GPU-enabled clusters running Databricks Runtime 4.1 and above.

../../_images/metrics-tab.png

To view live metrics, click the Ganglia UI link.

To view historical metrics, click a snapshot file. The snapshot contains aggregated metrics for the hour preceding the selected time.

Note

Ganglia metrics are not supported on clusters with table access control enabled.

Configure metrics collection

By default, Databricks collects Ganglia metrics every 15 minutes. To configure the collection period, set the DATABRICKS_GANGLIA_SNAPSHOT_PERIOD_MINUTES environment variable using an init script or in the spark_env_vars field in the Cluster Create API.

Datadog metrics

../../_images/datadog-metrics.png

You can install Datadog agents on cluster nodes to send Datadog metrics to your Datadog account. The following notebook demonstrates how to install a Datadog agent on a cluster using a cluster-scoped init script.

To install the Datadog agent on all clusters, use a global init script after testing the cluster-scoped init script.