https://issues.apache.org/jira/browse/FLINK-20533

There is no workaround in the current Flink releases, but you could compile the reporter based on the PR that I opened.

On 12/8/2020 10:38 PM, Fanbin Bu wrote:
thank you Chesnay. I did verified that count works with datadog. Please link here the ticket once you create it. Meanwhile, is there any workaround for now?

Fanbin

On Tue, Dec 8, 2020 at 2:56 AM Chesnay Schepler <ches...@apache.org <mailto:ches...@apache.org>> wrote:

    It appears that the datadog reporter does not report histograms.
    I'll file an issue to fix that.

    On 12/8/2020 4:42 AM, Fanbin Bu wrote:
    Hi,

    I followed [1] to define my own metric as:

    val dropwizardHistogram = new com.codahale.metrics.Histogram(new
    SlidingWindowReservoir(500))
    histogram = getRuntimeContext
          .getMetricGroup
          .histogram("*feature_latency*", new
    DropwizardHistogramWrapper(dropwizardHistogram))

    and it is successfully shown up in the flink UI:

    image.png

    however, I couldn't find it in datadog. my flink conf looks like:
    "metrics.reporter.dghttp.factory.class" ->
    "org.apache.flink.metrics.datadog.DatadogHttpReporterFactory",
          "metrics.scope.operator" -> "flink.op",
          "metrics.scope.jm.job" -> "flink.jm.job",
          "metrics.scope.jm <http://metrics.scope.jm>" -> "flink.jm
    <http://flink.jm>",
          "metrics.scope.tm <http://metrics.scope.tm>" -> "flink.tm
    <http://flink.tm>",
          "metrics.scope.tm.job" -> "flink.tm.job",
          "metrics.scope.task" -> "flink.task",

    Am I missing something that is necessary for datadog to report my
    customized metrics?

    Thanks,
    Fanbin



    [1]
    
https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/metrics.html#histogram



Reply via email to