Hi Jun,

I have added constructors for all the variations. Haven't included these in
the KIP since it is an internal class:

https://github.com/apache/kafka/pull/3686/files#diff-00ca7d83906c4fb8a5066e9af9c5c34b

Thank you,

Rajini



On Fri, Aug 18, 2017 at 1:24 AM, Jun Rao <j...@confluent.io> wrote:

> Hi, Rajini,
>
> Thanks for the KIP. Just a minor comment.
>
> Most existing usage of Rate doesn't pass in Count and uses SampledTotal by
> default. So should we provide an additional constructor like the following
> that uses SampledTotal?
>
> new Meter(rateMetricName, totalMetricName)
>
> Thanks,
>
> Jun
>
> On Thu, Aug 17, 2017 at 3:43 AM, Rajini Sivaram <rajinisiva...@gmail.com>
> wrote:
>
> > Thank you, Roger.
> >
> > I have changed the naming of the internal classes slightly and updated
> the
> > example. The new CompoundStat is called Meter and it combines Rate and
> > Count (the aggregate), leaving Rate as a simple stat. Will submit an
> > initial PR to help with the review.
> >
> > On Thu, Aug 17, 2017 at 12:09 AM, Roger Hoover <roger.hoo...@gmail.com>
> > wrote:
> >
> > > Rajini,
> > >
> > > Thank you.  This is very useful.  Grouping by metric by prefixing the
> > name
> > > instead of making them MBeans is not quite as nice but seems like an
> good
> > > compromise for backward compatibility.
> > >
> > > Cheers,
> > >
> > > Roger
> > >
> > > On Wed, Aug 16, 2017 at 5:35 AM, Rajini Sivaram <
> rajinisiva...@gmail.com
> > >
> > > wrote:
> > >
> > > > Sorry, pressed send by mistake.
> > > >
> > > > The KIP is here:
> > > >
> > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-
> > > > 187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics
> > > >
> > > > Feedback and suggestions are appreciated.
> > > >
> > > > Thank you...
> > > >
> > > > Rajini
> > > >
> > > >
> > > > On Wed, Aug 16, 2017 at 1:34 PM, Rajini Sivaram <
> > rajinisiva...@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > I have posted a KIP to add a cumulative count attribute for all
> Kafka
> > > > rate
> > > > > metrics to make downstream processing simpler, more accurate and
> > > > flexible:
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to