Giter VIP home page Giter VIP logo

aws-metrics-s3-export's Introduction

aws-metrics-s3-export

NOTE: This repository is not maintained. Use for reference purposes only.

Serverless application repository to allow cloudwatch metrics export to s3

Parameters

Parameter Description
PermissionsBoundary (optional) ARN of a permissions boundary to apply to all roles
MetricFilter JSON string array of metric filters to apply (see below)
ExportBucketName BucketName where the metrics result will be exported to
MetricsExportPeriod Metrics export period, WEEKLY, FORTNIGHTLY, MONTHLY

Getting Started

See the example directory for a sample deployment:

Configure your AWS CLI credentials

cd example
npm install
npm run deploy

MetricFilter

The MetricFilter parameter is used to construct a CloudWatch MetricDataQueries object, to query for metrics you wish to export.

The parameter should contain a JSON string MetricFilters conforming to the following schema:

type MetricFilters = MetricFilter[]

interface MetricFilter {
  metricName: string,
  nameSpace: string,
  dimensions?: MetricFilterDimension[]
}

interface MetricFilterDimension {
  name: string,
  value: string
}

For example:

[{ "metricName" : "ConcurrentExecutions", "nameSpace" : "AWS/Lambda"}, { "metricName" : "IncomingBytes", "nameSpace" : "AWS/Logs"}]

Will query CloudWatch Metrics for:

[{ "Id": "m0", "MetricStat": { "Metric": { "MetricName": "ConcurrentExecutions", "Namespace": "AWS/Lambda" }, "Period": 10, "Stat": "Average" } }]

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html

aws-metrics-s3-export's People

Contributors

zmaleki avatar temyers avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar  avatar

aws-metrics-s3-export's Issues

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.