ddd0734f43
First cut at implementing a generic abstraction layer for pluggable metrics providers. This first cut is closely modeled after Yammer Metrics. It remains to be seen if it is indeed flexibel enough to support other providers. Provide a default implementation of this new abstraction layer based on Yammer Metrics. Support pluggable Monitoring Providers using Java 6's ServiceLoader. Use this new abstraction layer to provide stats on (a) number of Timeouts executed per second and (b) distribution of absolute deviation between scheduled and actual Timeout execution time in HashedWheelTimer. * Interface ValueDistributionMonitor, a monitor for histograms. * Interface EventRateMonitor, a monitor for measuring the rate per time unit of specific events. * Interface ValueMonitor, a monitor for tracking an arbitrary datum's current value * Interface CounterMonitor, a monitor for incrementing/decrementing a long value * Interface MonitorRegistry, a registry for monitors that serves as the interface between Netty and concrete metrics providers as e.g. Yammer Metrics. * Interface MonitorRegistryFactory, to be implemented by metrics providers. * Document how to use Netty's new monitoring support in javadocs for package io.netty.monitor.
46 lines
1.5 KiB
XML
46 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright 2012 The Netty Project
|
|
~
|
|
~ The Netty Project licenses this file to you under the Apache License,
|
|
~ version 2.0 (the "License"); you may not use this file except in compliance
|
|
~ with the License. You may obtain a copy of the License at:
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
~ License for the specific language governing permissions and limitations
|
|
~ under the License.
|
|
-->
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-parent</artifactId>
|
|
<version>4.0.0.Alpha6-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>netty-metrics-yammer</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Netty/Yammer Metrics Provider</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-common</artifactId>
|
|
<scope>compile</scope>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.yammer.metrics</groupId>
|
|
<artifactId>metrics-core</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|
|
|