---
title: Azure SQL Elastic Jobs
description: >-
  Monitor Azure SQL elastic jobs execution outcomes by success, failure, and
  timeout.
breadcrumbs: Docs > Integrations > Azure SQL Elastic Jobs
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Azure SQL Elastic Jobs
Integration version1.0.0
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

[Elastic jobs](https://learn.microsoft.com/azure/azure-sql/database/elastic-jobs-overview) in Azure SQL Database run Transact-SQL scripts on a schedule or on demand across one or more databases. This integration collects successful, failed, and timed-out job execution counts for elastic job agents (`Microsoft.Sql/servers/jobAgents`).

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Microsoft Azure integration](https://docs.datadoghq.com/integrations/azure.md) first. There are no other installation steps.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **azure.sql_servers_jobagents.count**(gauge)                     | Number of Azure SQL elastic job agents.                                     |
| **azure.sql_servers_jobagents.elastic_jobs_failed**(count)     | Number of job executions that failed while trying to execute on the target. |
| **azure.sql_servers_jobagents.elastic_jobs_successful**(count) | Number of job executions that ran successfully on the target.               |
| **azure.sql_servers_jobagents.elastic_jobs_timeout**(count)    | Number of job executions that timed out before they finished on the target. |

### Service Checks{% #service-checks %}

The Azure SQL Elastic Jobs integration does not include any service checks.

### Events{% #events %}

The Azure SQL Elastic Jobs integration does not include any events.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
