flinkmonitoring

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

GitHub go.mod Go version GitHub Workflow Status

Flink exceptions alerting made simple (with go!).

Build

  • go install
  • go build -o flinkmonitoring

Usage

usage: flinkmonitoring [-h|--help] -c|--config "<value>" [-j|--jobid "<value>"]

                       Listens for exceptions of all / specified flink jobs and
                       send them to the specified receiver address

Arguments:

  -h  --help    Print help information
  -c  --config  path to config file
  -j  --jobid   optional job id. Default:
  • Configure sender and receivers mail info in related config section.
  • Specify flink endpoint
  • Customize poll and run time as you prefer

Config

poll: 5 # seconds
for: 15 # seconds

mail:
  sender: "sendermailaddress"
  password: "senderpassword"
  receivers: 
    - "receiver1"
    - "receiver2
  smtphost: "smtp.gmail.com"
  smtpport: "587"

flink:
  endpoint: http://localhost:8081

Run with Docker

*docker build --tag flinkmonitoring . *docker run --network=host -v $PWD/config.yml:/app/config.yml flinkmonitoring -config config.yml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL