Skip to content

Instantly share code, notes, and snippets.

@ejholmes
Forked from ryandotsmith/proposal.md
Created October 26, 2012 21:38
Show Gist options
  • Save ejholmes/3961715 to your computer and use it in GitHub Desktop.
Save ejholmes/3961715 to your computer and use it in GitHub Desktop.
l2met log conventions proposal

Beta Features

  • Log Convetnions
  • Last Value Computation

To use the beta log conventions, prepend the drain url path with /beta.

For instance:

https://drain.l2met.net/consumers/6ca815af/logs

Becomes:

https://drain.l2met.net/beta/consumers/6ca815af/logs

Log Conventions

Counter

Metrics Produced:

  • app.module.function.count
app="app" measure="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

Protocol:

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

Examples:

app="core" measure="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.

app="nile" measure="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