BY_COUNT
: If non-empty, fetch lag count instead of estimated secondsKAFKA_LAG_EXPORTER
: Kafka Lag Exporter endpointSLACK_CHANNEL
: Slack channel to post toSLACK_WEBHOOK
: Slack webhook endpointTHRESHOLD
Minimum seconds to report
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"
nix-build .