Giter Club home page Giter Club logo

ex_vmstats's Introduction

Build Status

ExVmstats

An Elixir package for pushing Erlang VM stats into StatsD, based on ferd/vmstats.

Installation

  1. Add ex_vmstats to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:ex_vmstats, "~> 0.0.1"}]
end
```
  1. Ensure ex_vmstats is started before your application:
```elixir
def application do
  [applications: [:ex_vmstats]]
end
```

Dependencies

Your project must include ExStatsD, unless you use a custom backend. (See configuration options below.)

Configuration

Configure ExVmstats using Mix.Config, normally somewhere in config/:

use Mix.Config

config :ex_vmstats,
  namespace: "vm_stats",
  backend: :ex_statsd,
  interval: 3000,
  use_histogram: false,
  sched_time: false

Defaults are shown. The configuration options are:

  • namespace: This will be prepended to all metrics sent by ExVmStats, but will follow the ExStatsD namespace (if applicable).

  • backend: Out of the box, the only supported backend is ExStatsD. A custom backend module may be identified here. Backend modules must define the functions &timer/2, &counter/2, and one or both of &gauge/2 and &histogram/2. The arguments passed to each are (value, metric).

  • interval: The number of milliseconds to wait between VM stats deliveries.

  • use_histogram: Use histograms instead of gauges. For use with Datadog's DogStatD.

  • sched_time: Enable reporting of Erlang scheduler_wall_time statistics (if available). For more information, see the section dealing with scheduler_wall_time here.

ex_vmstats's People

Contributors

ericentin avatar gregnar avatar lowks avatar

Watchers

Mikko Hämäläinen avatar Tero Teelahti avatar James Cloos avatar

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.