Service for monitoring ETL Table updates.
Checks hourly if a certain period has passed since the last sync. If the period is more then specified it
send a slack notification to a channel called flat-log-monitor
This service will post updates to a slack channel so its important to create a slack channel and get the channel webhook which you will set in the config.json file
- Fork the project
- Clone the project
- Create a config folder in the root directory with config.json file with the following configuration
{
"slackApi": {
"webhook": {
"url": ""
}
},
"mysql": {
"connectionLimit": 5,
"host": "",
"port": "",
"user": "",
"password": "",
"database": "",
"multipleStatements": true
}
}
- Node Version 12+
- Docker
npm install
npm start
docker build -f Dockerfile -t ampathke/flat-log-monitor/flat-log-monitor:tagname:<version> .
docker run -d -it --name flat-log-monitor --restart unless-stopped --mount type=bind,source="/opt/flat-log-monitor",target="/usr/src/app/config" ampathke/flat-log-monitor:latest