- Node.js
- NPM or Yarn
- Docker
- Docker-compose
- Clone this project by
git clone https://github.com/kennaruk/set-scraping-dashboard.git
- Install dependencies by NPM or Yarn
with NPM run npm install
or Yarn run yarn
- Run database(InfluxDB) and dashboard(Grafana) container by
docker-compose up -d
- Start scraping by NPM or Yarn
with NPM run npm run dev
or Yarn run yarn dev
-
Visit dashboard on localhost:1111
-
Configure your first time visit Grafana username/password
-
Create dashboard with this query pattern and replace each ${SET_SYMBOL} eg. BBL, AOT, KBANK, PTT
SELECT "close" FROM "${SET_SYMBOL}" WHERE $timeFilter GROUP BY time($__interval)