All Projects → mapbox → cloudwatch-librato

mapbox / cloudwatch-librato

Licence: other
Fetch AWS CloudWatch metrics and submit to Librato Metrics

Labels

Projects that are alternatives of or similar to cloudwatch-librato

nepomuk
A public transit router for GTFS feeds (currently only static) written in modern c++
Stars: ✭ 22 (+69.23%)
Mutual labels:  banished
geojson-coords
Extract coordinates from GeoJSON.
Stars: ✭ 29 (+123.08%)
Mutual labels:  banished
geocode-many
given an array of objects and a transform into a geocodable string, geocode them if possible
Stars: ✭ 13 (+0%)
Mutual labels:  banished
iconoblast
App icon dev info burning for iOS and Android.
Stars: ✭ 19 (+46.15%)
Mutual labels:  banished
weekend-picks-template
A template for browsing layers of TileMill maps. Part of the Map Sites templates from MapBox.
Stars: ✭ 24 (+84.62%)
Mutual labels:  banished
locator
A quick and easy way to build maps with markers
Stars: ✭ 30 (+130.77%)
Mutual labels:  banished
streambot
DEPRECATED (SEE README) Robot-assisted deploys to Lambda
Stars: ✭ 39 (+200%)
Mutual labels:  banished
node-eio
Control libeio from JavaScript
Stars: ✭ 14 (+7.69%)
Mutual labels:  banished
geojson-summary
Generate a plain-english summary of what is in a GeoJSON file.
Stars: ✭ 31 (+138.46%)
Mutual labels:  banished
mapbox-directions.js
Leaflet plugin for the Mapbox Directions API
Stars: ✭ 55 (+323.08%)
Mutual labels:  banished
grib-doctor
Utilities for handling quirks of weather data grib files.
Stars: ✭ 20 (+53.85%)
Mutual labels:  banished
diversify
Script for quickly creating varying sizes of app icons for iOS project asset catalogs.
Stars: ✭ 58 (+346.15%)
Mutual labels:  banished
cligj
Click-based argument and option decorators for Python GIS command line programs
Stars: ✭ 35 (+169.23%)
Mutual labels:  banished

Overview

cloudwatch-librato allows you to query your Amazon CloudWatch metrics and submit them to Librato Metrics. Librato Metrics has powerful metric correlation, metric drilldown, and custom dashboards features which let you view related metrics together in the same graph or on the same custom dashboard. If you have metrics in more than one AWS region it is easy to view them side by side within Librato Metrics.

Installation

  • add your aws key, aws secret, librato email, and librato token to settings.json
  • if you use _self or _callback, you must create ./getInstances and ./self scripts which live in the same directory as index.js. See below for more details about _self and _callback.
  • fill out which metrics you would like to proxy in settings.example.json
  • when setup is complete, run like node ./index.js --config settings.example.json or /usr/bin/cloudwatch-librato --config settings.example.json

cloudwatch-librato runs as a daemon. A configuration file holds AWS and Librato API credentials as well as definitions of which metrics to fetch from CloudWatch and send to Librato. There are four ways you can specify "Dimensions" for a metric:

Non-instance dimensions

{
    "MetricName": "Latency",
    "Namespace": "AWS/ELB",
    "Unit": "Count",
    "Period": 60,
    "Statistic": "Sum",
    "Dimensions": {
        "us-east-1": [
                         ["LoadBalancerName", "my-ui-load-balancer", "VA_UI_ELB"],
                         ["LoadBalancerName", "my-api-load-balancer", "VA_API_ELB"]
                     ],
        "eu-west-1": [
                         ["LoadBalancerName", "my-ui-load-balancer", "IRL_UI_ELB"],
                         ["LoadBalancerName", "my-api-load-balancer", "IRL_API_ELB"]
                     ]
    }
}
  • LoadBalancerName is the dimension Name
  • my-ui-load-balancer is the dimension Value
  • The third element can be anything, it's used as the source name

Instance dimensions

{
    "MetricName": "CPUUtilization",
    "Namespace": "AWS/EC2",
    "Unit": "Percent",
    "Period": 60,
    "Statistic": "Average",
    "Dimensions": {
        "us-east-1": "_callback",
        "eu-west-1": "_callback"
    }
}
  • _callback will cause a file called "./getInstances" to be executed, which should return a space or line separated list of ec2 instanceid's. The region id is passed to this file as an argument like: ./getInstances us-east-1

This instance

{
    "MetricName": "NetworkOut",
    "Namespace": "AWS/EC2",
    "Unit": "Bytes",
    "Period": 300,
    "Statistic": "Average",
    "Dimensions": "_self"
}
  • use of _self will cause a file called ./self to be executed. The output of ./self should return an instanceId, like i-abcd1234. The idea is the instance where the daemon is running will be used as the source, so you could create the ./self file and set its contents to:
#!/bin/bash

echo `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id`

See settings.example.json for more examples.

Other values in settings.example.json

  • instanceNameTag if you use the ec2 "tags" feature and one of your tags refers to a name you've given that ec2, you can set the value of this key to the name of that tag, which will give your metrics friendlier names within Librato Metrics.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].