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

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

# AWS MediaPackage
Integration version2.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 %}

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.md) 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.md).

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.md#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.md#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.channel_mqcs**(gauge)                       | The segment-level quality score that AWS Elemental MediaPackage calculates for the active input to this channel.                                    |
| **aws.mediapackage.channel_mqcs_sequence**(gauge)             | The quality score aggregated across all segments in the sequence for the active input to this channel, as calculated by AWS Elemental MediaPackage. |
| **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)                      | The average number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*                              |
| **aws.mediapackage.ingress_bytes.maximum**(gauge)              | The maximum number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*                              |
| **aws.mediapackage.ingress_bytes.minimum**(gauge)              | The minimum number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*                              |
| **aws.mediapackage.ingress_bytes.samplecount**(count)          | The sample count of the number of bytes of content that AWS Elemental MediaPackage receives for each input request.                                 |
| **aws.mediapackage.ingress_bytes.sum**(count)                  | The sum of the number of bytes of content that AWS Elemental MediaPackage receives for each input request.*Shown as byte*                           |
| **aws.mediapackage.ingress_mqcs**(gauge)                       | The segment-level quality score that AWS Elemental MediaLive communicates for this input.                                                           |
| **aws.mediapackage.ingress_mqcs_sequence**(gauge)             | The quality score aggregated across all segments in the sequence, as communicated by AWS Elemental MediaLive.                                       |
| **aws.mediapackage.ingress_request_count**(count)             | The sum of the number of input requests that AWS Elemental MediaPackage receives.*Shown as request*                                                 |
| **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/).
