Skip to content

Instantly share code, notes, and snippets.

@ryandotsmith
Created October 23, 2012 04:12
Show Gist options
  • Save ryandotsmith/3936604 to your computer and use it in GitHub Desktop.
Save ryandotsmith/3936604 to your computer and use it in GitHub Desktop.
l2met log conventions proposal

Beta Features

  • Log Convetnions
  • Last Value Computation

This beta convention is running in production today. Start using it immediately.

Log Conventions

Counter

Metrics Produced:

  • app.module.function.count
measure="app.module.function"

Value Counter

Value coutners are useful for building metrics around time based functions. For instance, the elapsed duration of a function call. Or you can measure the value of an in memory resource.

Metrics Produced:

  • app.module.function.min
  • app.module.function.max
  • app.module.function.mean
  • app.module.function.median
  • app.module.function.perc95
  • app.module.function.perc99
  • app.module.function.last

Protocol:

measure="app.module.function" val=42

Examples:

measure="core.apps.get" val=1.23 units=s

In the previous example we have an app named core which has an HTTP GET endpoint named apps that took 1.23 seconds to execute. The units key/value is optional. Providing units will allow grouping by units on the chart UI.

measure="nile.r53-backlog" val=42 units=items

This example will provide us with metrics around the backlog of our Route53 queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment