Git Product home page Git Product logo

logs-insights-to-metric's Introduction

logs-insights-to-metric

This project is to publish data from CloudWatch Logs Insights to Custom Metrics.

Please read this blog post for more details:
https://blog.smirnov.la/cloudwatch-logs-insights-to-metrics-a2d197aac379

Project page in AWS Serverless Application Repository:
https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:085576722239:applications~logs-insights-to-metric

Deployment parameters

Must set:

  • LogGroupNames - Comma separated names of CloudWatch log groups to query
  • MetricName - A name of CloudWatch metric to put data into
  • MetricNamespace - A namespace of CloudWatch metric to put data into
  • QueryString - replace the default by something meaningful for you

Reasonable defaults:

  • Dimensions - Optional metric dimensions definition in JSON
  • GroupingDimensionName - A name of metric dimension used for grouping (default: 'Log group')
  • QueryDelay - Time to wait before data available to query in minutes (default: 3 min)
  • QueryGroupBy - CloudWatch Logs Insights field name used for grouping (default: '@log')
  • QueryPeriod - Time window size in minutes (default: 5 min)
  • QueryRetry - Delay between getQueryResults retries in ms (default: 1000 ms)
  • QueryString - CloudWatch Logs Insights query to run
    (default: 'fields @log, @timestamp, @message | stats count() by @log' - log entries number per log group)
  • SkipEmpty - Wether to skip empty query results or post them as zeros (default: 'true')
  • Unit - Optional unit name (default: 'Count')

logs-insights-to-metric's People

Contributors

danil-smirnov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

logs-insights-to-metric'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.