You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Sam Lendle <sl...@pandora.com> on 2018/08/01 23:37:19 UTC
Total metrics are broken in Kafka streams 2.0.0
Is this a known issue? If not I can create a JIRA.
For example, here’s a screenshot of the process-total metric for one processor node and task under stream-processor-node-metrics. Processor-total goes down over time when it shouldn’t. Same thing for total metrics under stream-metrics, stream-*-state-metrics, stream-task-metrics. Total metrics look okay for producer and consumers that I’ve looked at.
Technically most streams total metrics aren’t documented (https://docs.confluent.io/current/streams/monitoring.html), so maybe they’re not officially supported but they are mentioned in KIP 187 https://cwiki.apache.org/confluence/display/KAFKA/KIP-187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics.
[cid:image001.png@01D429B1.2CED5AD0]
Re: Total metrics are broken in Kafka streams 2.0.0
Posted by Guozhang Wang <wa...@gmail.com>.
Thank you Sam!
On Wed, Aug 1, 2018 at 11:39 PM, Sam Lendle <sl...@pandora.com> wrote:
> The problem is that the total metrics in streams are implemented using a
> Count, which is a SampledStat, so the value it reports is the count over
> recent time windows, not all of time. The behavior I was seeing was when a
> window is purged, the reported total decreases. I’ll open a JIRA tomorrow.
>
> On 8/1/18, 4:50 PM, "Guozhang Wang" <wa...@gmail.com> wrote:
>
> Hello Sam,
>
> Your uploaded snapshot was rejected by apache mailing list, could you
> upload it somewhere else, and share the link with us?
>
>
> Guozhang
>
>
> On Wed, Aug 1, 2018 at 4:37 PM, Sam Lendle <sl...@pandora.com>
> wrote:
>
> > Is this a known issue? If not I can create a JIRA.
> >
> >
> >
> > For example, here’s a screenshot of the process-total metric for one
> > processor node and task under stream-processor-node-metrics.
> > Processor-total goes down over time when it shouldn’t. Same thing
> for total
> > metrics under stream-metrics, stream-*-state-metrics,
> stream-task-metrics.
> > Total metrics look okay for producer and consumers that I’ve looked
> at.
> >
> >
> >
> > Technically most streams total metrics aren’t documented (
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.
> confluent.io_current_streams_monitoring.html&d=DwIFaQ&c=
> gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=
> BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_
> 8U0Jlz0X8RLkWEQ&s=dOQW97fklwzcYf8pBFafKmtiKkbDUwkKa9gL2eXfvLM&e=), so
> maybe
> > they’re not officially supported but they are mentioned in KIP 187
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.
> apache.org_confluence_display_KAFKA_KIP-2D&d=DwIFaQ&c=
> gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=
> BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_
> 8U0Jlz0X8RLkWEQ&s=VxM4uo16_sukXVcW8ztzNnydCzoK568paxsrxfhPkEY&e=
> > 187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics.
> >
> >
> >
> > [image: cid:image001.png@01D429B1.2CED5AD0]
> >
>
>
>
> --
> -- Guozhang
>
>
>
--
-- Guozhang
Re: Total metrics are broken in Kafka streams 2.0.0
Posted by Sam Lendle <sl...@pandora.com>.
The problem is that the total metrics in streams are implemented using a Count, which is a SampledStat, so the value it reports is the count over recent time windows, not all of time. The behavior I was seeing was when a window is purged, the reported total decreases. I’ll open a JIRA tomorrow.
On 8/1/18, 4:50 PM, "Guozhang Wang" <wa...@gmail.com> wrote:
Hello Sam,
Your uploaded snapshot was rejected by apache mailing list, could you
upload it somewhere else, and share the link with us?
Guozhang
On Wed, Aug 1, 2018 at 4:37 PM, Sam Lendle <sl...@pandora.com> wrote:
> Is this a known issue? If not I can create a JIRA.
>
>
>
> For example, here’s a screenshot of the process-total metric for one
> processor node and task under stream-processor-node-metrics.
> Processor-total goes down over time when it shouldn’t. Same thing for total
> metrics under stream-metrics, stream-*-state-metrics, stream-task-metrics.
> Total metrics look okay for producer and consumers that I’ve looked at.
>
>
>
> Technically most streams total metrics aren’t documented (
> https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.confluent.io_current_streams_monitoring.html&d=DwIFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_8U0Jlz0X8RLkWEQ&s=dOQW97fklwzcYf8pBFafKmtiKkbDUwkKa9gL2eXfvLM&e=), so maybe
> they’re not officially supported but they are mentioned in KIP 187
> https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_KAFKA_KIP-2D&d=DwIFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_8U0Jlz0X8RLkWEQ&s=VxM4uo16_sukXVcW8ztzNnydCzoK568paxsrxfhPkEY&e=
> 187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics.
>
>
>
> [image: cid:image001.png@01D429B1.2CED5AD0]
>
--
-- Guozhang
Re: Total metrics are broken in Kafka streams 2.0.0
Posted by Sam Lendle <sl...@pandora.com>.
Thought that might happen: https://i.imgur.com/eDV9CIM.png
On 8/1/18, 4:50 PM, "Guozhang Wang" <wa...@gmail.com> wrote:
Hello Sam,
Your uploaded snapshot was rejected by apache mailing list, could you
upload it somewhere else, and share the link with us?
Guozhang
On Wed, Aug 1, 2018 at 4:37 PM, Sam Lendle <sl...@pandora.com> wrote:
> Is this a known issue? If not I can create a JIRA.
>
>
>
> For example, here’s a screenshot of the process-total metric for one
> processor node and task under stream-processor-node-metrics.
> Processor-total goes down over time when it shouldn’t. Same thing for total
> metrics under stream-metrics, stream-*-state-metrics, stream-task-metrics.
> Total metrics look okay for producer and consumers that I’ve looked at.
>
>
>
> Technically most streams total metrics aren’t documented (
> https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.confluent.io_current_streams_monitoring.html&d=DwIFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_8U0Jlz0X8RLkWEQ&s=dOQW97fklwzcYf8pBFafKmtiKkbDUwkKa9gL2eXfvLM&e=), so maybe
> they’re not officially supported but they are mentioned in KIP 187
> https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_KAFKA_KIP-2D&d=DwIFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=BNCekDhngyXB6C2Ag7PIfHotiuqjAVwLOZLQHB7fyOM&m=zq-Fk2clMlUfF7RbFuEZnUqnn4o_8U0Jlz0X8RLkWEQ&s=VxM4uo16_sukXVcW8ztzNnydCzoK568paxsrxfhPkEY&e=
> 187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics.
>
>
>
> [image: cid:image001.png@01D429B1.2CED5AD0]
>
--
-- Guozhang
Re: Total metrics are broken in Kafka streams 2.0.0
Posted by Guozhang Wang <wa...@gmail.com>.
Hello Sam,
Your uploaded snapshot was rejected by apache mailing list, could you
upload it somewhere else, and share the link with us?
Guozhang
On Wed, Aug 1, 2018 at 4:37 PM, Sam Lendle <sl...@pandora.com> wrote:
> Is this a known issue? If not I can create a JIRA.
>
>
>
> For example, here’s a screenshot of the process-total metric for one
> processor node and task under stream-processor-node-metrics.
> Processor-total goes down over time when it shouldn’t. Same thing for total
> metrics under stream-metrics, stream-*-state-metrics, stream-task-metrics.
> Total metrics look okay for producer and consumers that I’ve looked at.
>
>
>
> Technically most streams total metrics aren’t documented (
> https://docs.confluent.io/current/streams/monitoring.html), so maybe
> they’re not officially supported but they are mentioned in KIP 187
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-
> 187+-+Add+cumulative+count+metric+for+all+Kafka+rate+metrics.
>
>
>
> [image: cid:image001.png@01D429B1.2CED5AD0]
>
--
-- Guozhang