Giter Site home page Giter Site logo

aws-samples / aws-cloudfront-real-time-metrics-sample Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 30 KB

This repository provides infrastructure and code to parse CloudFront real-time logs and convert these logs into CloudWatch custom metrics. These Custom metrics in CloudWatch can provide low-level insight into how well a CloudFront distribution is performing and even enable monitoring the operational health of specific CloudFront edge locations. This can assist in the identification of common problems affecting CloudFront distributions such as localized outages, ISP failures, and DNS routing issues.

License: MIT No Attribution

Python 100.00%
cloudfront-logs cloudfront cloudwatch-metrics cloudwatch cloudfront-distribution

aws-cloudfront-real-time-metrics-sample's Introduction

CloudWatch Metrics from CloudFront Real-Time Logs

This repository contains sample code to create infrastructure to parse CloudFront real-time logs. This infrastructure will use data from CloudFront real-time logs and upload it to CloudWatch as custom metrics. These custom metrics in CloudWatch can provide low-level insight into how well a CloudFront distribution is performing and even enable monitoring the operational health of specific CloudFront edge locations. This can assist in the identification of common problems affecting CloudFront distributions such as localized outages, ISP failures, and DNS routing issues. This code is used as part of a an AWS blog, which can be referenced here.

Overview

Deploying the Code

This repository is intended to be a companion to an AWS blog. You should review this blog prior to using code from this repository. An AWS SAM template in this repository provides deployment capabilities for this project. To deploy this project, follow the steps below:

  1. Clone the source code from this repository to your local environment

  2. From a shell prompt in your local environment, change directory to the root of the source code cloned from this respository

  3. Run the command below to trigger the stack creation dialog

    sam deploy --template cfn/template.yaml --guided

  4. Populate the Stack Name parameter with any valid CloudFormation stack name. The AWS Region parameter can be any valid AWS Region, but it will default to us-east-1. Provide values for the CloudFrontDistributionDomainName and KinesisShardCount parameters as appropriate. You must respond with a “y” when prompted to Allow SAM CLI IAM role creation or else the deployment will fail. Responding with a “y” to the Confirm changes before deploy will allow you to review a CloudFormation changeset prior to the deployment. Respond with a “y” to Save arguments to a configuration file to prevent being asked these questions in the future.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-cloudfront-real-time-metrics-sample's People

Contributors

amazon-auto avatar thdvisn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jbadru73

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.