Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.52 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.52 KB

CSV Monitor

Monitors CSV for stuff

Requirements

  • Linux / MacOS / Windows
  • docker

Development

Configuration

Dark sky exporter can be controlled by both ENV or CLI flags as described below.

Environment CLI (--flag) Default Description
CSVLOC csv <REQUIRED> File path of the CSV file
SLACKHOOK slackhook <REQUIRED> Webhook URL for Slacks
CSVHOUR csvhour 8 Hour at which script will run
CSVMINUTE csvminute 0 Minute of the hour in which script will run

Usage

# Monitor CSV using binary
export LOG=*; ./csvmonitor --csv test.csv --slackhook https://hooks.slack.com/services/JIGJ42V99/BHDTFBH9P/K489FDQyPjlHVjU5492AjTWfQ

# Monitor CSV using docker
docker run -d --restart on-failure --env LOG=* --name=csvmonitor billykwooten/csvmonitor --csv test.csv --slackhook https://hooks.slack.com/services/JIGJ42V99/BHDTFBH9P/K489FDQyPjlHVjU5492AjTWfQ