Giter Club home page Giter Club logo

metricman's People

Contributors

0xax avatar galaxygorilla avatar liveforeverx avatar rixmann avatar surik avatar umatomba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

metricman's Issues

Uptime metric not working

I added the following to my predefined list in the exometer_config:

{[:erlang, :beam, :uptime], {:function, Metricman, :update_uptime, [], :proplist, [:value]}, []}

and I subscribe to the same in my subscribers list as follows:

{:exometer_report_influxdb, [:erlang, :beam, :uptime], [:value], poll_interval, []}

but I keep getting the following lager warning,

11:01:28.968 [warning] Metric([erlang,beam,uptime]) Datapoint([value]) not found. Will not try again

In effect the metric is not pushed to InfluxDB. Other metric from the config.exs work fine.

Variable name clashing in subscription DSL

For example this module:

defmodule Mapping do
  use Metricman.Subscription

  @reporter expose: [:exometer_report_influxdb]

  scope [:sessions], @reporter do
    map [:total],       [:sessions, :total]
    map [:access_class, '$access_class'], [:sessions, :access_class '$access_class']
  end
end

Will generate get/2 function which works like:

> Mapping.get [:sessions, :access_class, :online], :counter
{:ok, {[:sessions, :online, :access_class], [:value], [expose: [:exometer_report_influxdb]]}}

but it is not was expected. The correct result should looks like:

{:ok, {[:sessions, :access_class, :online], [:value], [expose: [:exometer_report_influxdb]]}}

It happens because we have names clashing: :access_class and '$access_class'.
If we rename '$access_class' to '$class' all works correct.

Update README

Can you please add a README describing what metric man is and how it work.
Please add also the dependencies. As far I know metric man depends on exometer
which in turn could pull in snap which required mnesia, So a quite long dependency
tree behind metricman ?

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.