Skip to content

niklassemmler/dataflow-monitor

Repository files navigation

build status coverage report

Usage

For now we only support a single node setup

Requirements:

  • Flink 1.4.2
  • Scala >=2.11 (tested for 2.11)
  • sbt
  • gurobi (for the optimizer only)

Building

Build everything with:

sbt clean assembly

Run the monitor with

sbt monitor/run

Or use the short-hand

sbt "monitor/runMain berlin.bbdc.inet.mera.monitor.Starter"

Configuring Flink

Before using the monitor, your version of Flink first has to be instrumented.

  1. Execute the following commands

     cd flink-reporter
     sbt assembly
    
  2. Copy the resulting jar to the lib/ folder of your Flink deployment.

     cp target/scala-2.11/flink-reporter-assembly-0.1.jar $FLINK_PATH/lib
    
  3. Add the following entries to your flink-config:

     cat <<EOF >> $FLINK_PATH/conf/flink-conf.yaml
     metrics.reporters: monitor
     metrics.reporter.monitor.class: berlin.bbdc.inet.mera.reporter.FlinkMetricPusher
     metrics.reporter.monitor.interval: 500 MILLISECONDS
     EOF 
    

Running the monitor

We assume that Flink is co-located with the monitor and its jobmanager is reachable through localhost.

As a prerequisite of the optimizer Gurobi has to be installed.

Get it here:

Then you can start the monitor either via

cd flink-monitor/
sbt run 

Or

sbt assembly
java -cp "target/scala-2.11/mera-assembly-0.2.jar:lib/gurobi.jar" berlin.bbdc.inet.mera.server.Starter

Running the WebUI

After running the "sbt run" simply go to

http://localhost:12345

To see a running LinePlot a first Metric has to be initialized.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published