Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Monitoring Hadoop

You're reading from  Monitoring Hadoop

Product type Book
Published in Apr 2015
Publisher
ISBN-13 9781783281558
Pages 100 pages
Edition 1st Edition
Languages
Author (1):
Aman Singh Aman Singh
Profile icon Aman Singh
Toc

Metrics APIs


For reporting metrics, we have a package that provides APIs for both Metrics1 and Metrics2. It provides the flexibility to use client libraries and different modules from within an application.

The org.apache.hadoop.metrics package

This package provides sub-packages to do the specified task:

org.apache.hadoop.metrics.spi

The abstract Server Provider Interface package. Those wishing to integrate the metrics API with a particular metrics client library should extend this package:

org.apache.hadoop.metrics.file

An implementation package that writes the metric data to a file or sends it to the standard output stream:

org.apache.hadoop.metrics.ganglia

An implementation package that sends metrics data to Ganglia.

The new Metrics2 provides a lot more packages for the implementation.

The org.apache.hadoop.metrics2 package

  • org.apache.hadoop.metrics2.annotation: This is the public annotation that interfaces for simpler metrics instrumentation.

  • org.apache.hadoop.metrics2.filter: This is the built...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime