Enable task usage metrics
To enable task usage metrics for your entire Astronomer installation, configure the following values in yourvalues.yaml file:
Set up task usage metrics on a Deployment (Required only for Astro Runtime < 7.2)
Task usage metrics are generated by the Astronomer-maintainedairflow-analytics-plugin. This plug-in queries the Airflow metadata database and returns usage analytics at an HTTP endpoint. Deployments using Runtime 7.2 or later have this plug-in installed by default.
To install the plug-in on a Deployment using Astro Runtime version 7.2 or earlier:
-
Add the following line to the
requirements.txtfile of your Astro project: - Push your changes to Astronomer Software. See Deploy code.
View task usage metrics
Depending on your permissions, you can view task usage metrics for a given installation, Workspace, or Deployment in the Software UI.- View an installation’s task usage: In the Software UI, go to System Admin > Task Usage. This page shows total task runs, as well as task runs per Workspace.
- View a Workspace’s task usage: In the Software UI, select a Workspace and go to Task Usage. This page shows the Workspace’s total task runs, as well as task runs per Deployment.
- View a Deployment’s task usage: In the Software UI, select open a Workspace, select a Deployment in the Workspace, and go to Task Usage. This page shows the Deployment’s total task runs, as well as task runs per day.