You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by Ted Yu <yu...@gmail.com> on 2012/07/10 20:32:57 UTC

MetricsContext counterpart in metrics2 framework

Hi,
Pardon my lack of knowledge about metrics2 framework.

I don't see MetricsContext in src/core/org/apache/hadoop/metrics2

If a user Implements his/her own MetricsContext to plugin to monitoring
system, what should he / she do in metrics2 framework.

Cheers

Re: MetricsContext counterpart in metrics2 framework

Posted by Ted Yu <yu...@gmail.com>.
Thanks for your answer, Luke.

On Tue, Jul 24, 2012 at 9:14 PM, Luke Lu <ll...@vicaya.com> wrote:

> There is no MetricsContext in metrics2. The functionality of
> MetricsContext is split into MetricsSource, MetricsSystem (the pubsub
> system) and MetricsSink. Typical monitoring plugins just implement the
> MetricsSink interface and register the implementation and topology in
> hadoop-metrics2.properties. See o.a.h.metrics2.sink packages for
> examples (FileSink, Ganglia3*Sink etc.)
>
> For design docs see http://wiki.apache.org/hadoop/HADOOP-6728-MetricsV2
>
> __Luke
>
> On Tue, Jul 10, 2012 at 3:45 PM, Ted Yu <yu...@gmail.com> wrote:
> > If anyone is using metrics2 in hadoop 1.0 or 2.0, please share your
> > experience.
> >
> > Thanks
> >
> > On Tue, Jul 10, 2012 at 11:32 AM, Ted Yu <yu...@gmail.com> wrote:
> >
> >> Hi,
> >> Pardon my lack of knowledge about metrics2 framework.
> >>
> >> I don't see MetricsContext in src/core/org/apache/hadoop/metrics2
> >>
> >> If a user Implements his/her own MetricsContext to plugin to monitoring
> >> system, what should he / she do in metrics2 framework.
> >>
> >> Cheers
> >>
>

Re: MetricsContext counterpart in metrics2 framework

Posted by Luke Lu <ll...@vicaya.com>.
There is no MetricsContext in metrics2. The functionality of
MetricsContext is split into MetricsSource, MetricsSystem (the pubsub
system) and MetricsSink. Typical monitoring plugins just implement the
MetricsSink interface and register the implementation and topology in
hadoop-metrics2.properties. See o.a.h.metrics2.sink packages for
examples (FileSink, Ganglia3*Sink etc.)

For design docs see http://wiki.apache.org/hadoop/HADOOP-6728-MetricsV2

__Luke

On Tue, Jul 10, 2012 at 3:45 PM, Ted Yu <yu...@gmail.com> wrote:
> If anyone is using metrics2 in hadoop 1.0 or 2.0, please share your
> experience.
>
> Thanks
>
> On Tue, Jul 10, 2012 at 11:32 AM, Ted Yu <yu...@gmail.com> wrote:
>
>> Hi,
>> Pardon my lack of knowledge about metrics2 framework.
>>
>> I don't see MetricsContext in src/core/org/apache/hadoop/metrics2
>>
>> If a user Implements his/her own MetricsContext to plugin to monitoring
>> system, what should he / she do in metrics2 framework.
>>
>> Cheers
>>

Re: MetricsContext counterpart in metrics2 framework

Posted by Ted Yu <yu...@gmail.com>.
If anyone is using metrics2 in hadoop 1.0 or 2.0, please share your
experience.

Thanks

On Tue, Jul 10, 2012 at 11:32 AM, Ted Yu <yu...@gmail.com> wrote:

> Hi,
> Pardon my lack of knowledge about metrics2 framework.
>
> I don't see MetricsContext in src/core/org/apache/hadoop/metrics2
>
> If a user Implements his/her own MetricsContext to plugin to monitoring
> system, what should he / she do in metrics2 framework.
>
> Cheers
>