'What are the default bucketing used in flink histogram metric?

I referred to the 'Histogram' section from page. It talks about how to create a histogram but doesn't mention anything about default buckets.

Can someone help me with the exact code location where these default buckets are defined or advice about to specify buckets in this scenario



Solution 1:[1]

That depends on which histogram implementation you are using. Flink includes wrappers for implementations from com.codahale.metrics and org.apache.commons.math3.stat.descriptive.

For example:

eventTimeLag = getRuntimeContext()
    .getMetricGroup()
    .histogram(
        "eventTimeLag",
        new DescriptiveStatisticsHistogram(10000));

That example is from https://github.com/ververica/flink-training/blob/master/troubleshooting/checkpointing/src/solution/java/com/ververica/flink/training/solutions/CheckpointingJobSolution3.java if you want to see it in context.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Anderson