---
title: AWS MediaPackage
description: >-
  Deliver secure, scalable video streams to playback devices, providing video
  packaging and origination services.
breadcrumbs: Docs > Integrations > AWS MediaPackage
---

# AWS MediaPackage
Integration version1.0.0
## Overview{% #overview %}

AWS Elemental MediaPackage is a just-in-time video packaging and origination service that delivers highly secure, scalable, and reliable video streams to a wide variety of playback devices.

Enable this integration to see all your Elemental MediaPackage metrics in Datadog.

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Amazon Web Services integration](https://docs.datadoghq.com/integrations/amazon_web_services/) first.

### Metric collection{% #metric-collection %}

1. In the [AWS integration page](https://app.datadoghq.com/integrations/amazon-web-services), ensure that `MediaPackage` is enabled under the `Metric Collection` tab.
1. Install the [Datadog - AWS Elemental MediaPackage integration](https://app.datadoghq.com/integrations/amazon-mediapackage).

### Log collection{% #log-collection %}

#### Enable logging{% #enable-logging %}

Configure AWS Elemental MediaPackage to send logs either to a S3 bucket or to CloudWatch.

**Note**: If you log to a S3 bucket, make sure that `amazon_mediapackage` is set as *Target prefix*.

#### Send logs to Datadog{% #send-logs-to-datadog %}

1. If you haven't already, set up the [Datadog Forwarder Lambda function](https://docs.datadoghq.com/logs/guide/forwarder/).

1. Once the Lambda function is installed, manually add a trigger on the S3 bucket or CloudWatch log group that contains your AWS Elemental MediaPackage logs in the AWS console:

   - [Add a manual trigger on the S3 bucket](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-s3-buckets)
   - [Add a manual trigger on the CloudWatch Log Group](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-cloudwatch-log-group)

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

### Metrics{% #metrics %}

|  |
|  |
| **aws.mediapackage.active\_input**(gauge)                       | Indicates if an input has been used as the source for an endpoint in AWS Elemental MediaPackage (it has been active). |
| **aws.mediapackage.egress\_bytes**(gauge)                       | The average number of bytes that AWS Elemental MediaPackage successfully sends for each request.*Shown as byte*       |
| **aws.mediapackage.egress\_bytes.maximum**(gauge)               | The maximum number of bytes that AWS Elemental MediaPackage successfully sends for each request.*Shown as byte*       |
| **aws.mediapackage.egress\_bytes.minimum**(gauge)               | The minimum number of bytes that AWS Elemental MediaPackage successfully sends for each request.*Shown as byte*       |
| **aws.mediapackage.egress\_bytes.samplecount**(count)           | The sample count of the number of bytes that AWS Elemental MediaPackage successfully sends for each request.          |
| **aws.mediapackage.egress\_bytes.sum**(count)                   | The sum of the number of bytes that AWS Elemental MediaPackage successfully sends for each request.*Shown as byte*    |
| **aws.mediapackage.egress\_request\_count**(count)              | The sum of the number of content requests that AWS Elemental MediaPackage receives.*Shown as request*                 |
| **aws.mediapackage.egress\_response\_time**(gauge)              | The average time that it takes AWS Elemental MediaPackage to process each output request.*Shown as millisecond*       |
| **aws.mediapackage.egress\_response\_time.maximum**(gauge)      | The maximum time that it takes AWS Elemental MediaPackage to process each output request.*Shown as millisecond*       |
| **aws.mediapackage.egress\_response\_time.minimum**(gauge)      | The minimum time that it takes AWS Elemental MediaPackage to process each output request.*Shown as millisecond*       |
| **aws.mediapackage.egress\_response\_time.samplecount**(count)  | The sample count of the time that it takes AWS Elemental MediaPackage to process each output request.                 |
| **aws.mediapackage.egress\_response\_time.sum**(count)          | The sum of the time that it takes AWS Elemental MediaPackage to process each output request.*Shown as millisecond*    |
| **aws.mediapackage.ingress\_bytes**(gauge)                      | Average number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*    |
| **aws.mediapackage.ingress\_bytes.maximum**(gauge)              | Maximum number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*    |
| **aws.mediapackage.ingress\_bytes.minimum**(gauge)              | Minimum number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*    |
| **aws.mediapackage.ingress\_bytes.samplecount**(count)          | Sample count of number of bytes of content that AWS Elemental MediaPackage receives for each input request.           |
| **aws.mediapackage.ingress\_bytes.sum**(count)                  | Sum of number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*     |
| **aws.mediapackage.ingress\_response\_time**(gauge)             | The average time that it takes AWS Elemental MediaPackage to process each input request.*Shown as millisecond*        |
| **aws.mediapackage.ingress\_response\_time.maximum**(gauge)     | The maximum time that it takes AWS Elemental MediaPackage to process each input request.*Shown as millisecond*        |
| **aws.mediapackage.ingress\_response\_time.minimum**(gauge)     | The minimum time that it takes AWS Elemental MediaPackage to process each input request.*Shown as millisecond*        |
| **aws.mediapackage.ingress\_response\_time.samplecount**(count) | The sample count of the time that it takes AWS Elemental MediaPackage to process each input request.                  |
| **aws.mediapackage.ingress\_response\_time.sum**(count)         | The sum of the time that it takes AWS Elemental MediaPackage to process each input request.*Shown as millisecond*     |

### Events{% #events %}

The AWS Elemental MediaPackage integration does not include any events.

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

The AWS Elemental MediaPackage integration does not include any service checks.

## Troubleshooting{% #troubleshooting %}

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