Coder Social home page Coder Social logo

xiashuijun / flink-metrics-datadog-statsd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drivetribe/flink-metrics-datadog-statsd

0.0 2.0 0.0 7 KB

Metrics reporter that leverages the StatsD (extended) protocol to push metrics to Datadog

License: MIT License

Scala 100.00%

flink-metrics-datadog-statsd's Introduction

Datadog reporter for Flink metrics

Implementation of a metrics reporter that uses the StatsD protocol with Datadog extensions for tagging to push metrics to the Datadog agent.

Requirements

  • The datadog agent is running on some host
  • The jar produced by sbt package is in the classpath of the Flink runner (e.g. it is copied in the flink/lib folder)
  • To configure the reporter in flink-conf.yaml

Configuration

An example configuration assuming that the datadog agent is running on all the cluster nodes on the default port:

metrics.scope.jm: <host>.jobmanager.nil.nil.nil.nil.nil
metrics.scope.jm.job: <host>.jobmanager.<job_name>.nil.nil.nil.nil
metrics.scope.tm: <host>.taskmanager.<tm_id>.nil.nil.nil.nil
metrics.scope.tm.job: <host>.taskmanager.<tm_id>.<job_name>.nil.nil.nil
metrics.scope.task: <host>.taskmanager.<tm_id>.<job_name>.<task_name>.nil.<subtask_index>
metrics.scope.operator: <host>.taskmanager.<tm_id>.<job_name>.<task_name>.<operator_name>.<subtask_index>

metrics.reporters: statsd_datadog
metrics.reporter.statsd_datadog.class: io.chumps.flink.FlinkDatadogStatsDReporter
metrics.reporter.statsd_datadog.pattern: host.type.task_manager.job.task.operator.subtask_index

The pattern property extracts segments of the metric label to tags in Datadog; any non matched bits at the end will be the name of the metric. If pattern is not provided the default behaviour is to name the metrics metric and tag them with the whole label.

Other properties that can be configured are:

  • host the host where the Datadog agent is running (default localhost)
  • port the port that the Datadog agent is listening to for StatsD datagrams (default 8125)
  • prefix the prefix for all the metric names being published (default flink)

flink-metrics-datadog-statsd's People

Contributors

astrac avatar

Watchers

James Cloos avatar xiashuijun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.