Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metrics-java

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metrics-java

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Metrics

This is a primitive JRuby wrapper around Coda Hale's Metrics library. It is very incomplete and still a work in progress. Feedback is appreciated.

How to Use

Somewhere during the initialization of your app, you should set the name of your app. If you do not, it will default to "MyProject"

MetricsJ.app_name = "Foo App"

You can view the metrics that your app is collecting by running jconsole from the command line. Select your JRuby app and navigate to the "MBeans" tab.

Meters

class Foo
  extend MetricsJ::Meter

  meter :bar

  def baz
    bar_meter.mark
    # Do something...
  end

end

Todo

Most everything, still:

  • Gauges
  • Counters
  • Histograms
  • Timers
  • Health Checks

In addition, there will be a Rails and a Sinatra/Padrino plugin that will hopefully hide most of these details.

FAQs

Package last updated on 25 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc