NeQuissimus / kafka-lag-slacker

Post Kafka lag to Slack channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka-lag-slacker

Environment

  • BY_COUNT: If non-empty, fetch lag count instead of estimated seconds
  • KAFKA_LAG_EXPORTER: Kafka Lag Exporter endpoint
  • SLACK_CHANNEL: Slack channel to post to
  • SLACK_WEBHOOK: Slack webhook endpoint
  • THRESHOLD Minimum seconds to report

Debug build

nix-shell -p cargo -p pkgconfig -p openssl -p rustfmt --command "rustfmt ./src/main.rs; SLACK_WEBHOOK='https://localhost/slack' KAFKA_LAG_EXPORTER='http://localhost:8000/lag' SLACK_CHANNEL='#general' THRESHOLD='30' cargo run"

Release build

nix-build .

About

Post Kafka lag to Slack channel


Languages

Language:Rust 89.1%Language:Nix 10.9%