Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.34 KB

README.md

File metadata and controls

71 lines (51 loc) · 1.34 KB

isucon-dashboard

EFK(Elasticsearch, Fluent Bit, Kibana) dashboard for ISUCON

dashboard

Nginx(s),Slow query log(s)
-> Fluent Bit(s)
-> Fluent Bit
-> Elasticsearch
-> Kibana

(Optional) Nginx settings

Add $request_time to log_format

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for" $request_time';

Quick start

  1. start EFK server (with Docker)
cd server
docker compose up --build
  1. open another shell & start client
  • with Docker
cd client
docker compose up --build
  • without Docker (local)
    • If you use this dashboard for ISUCON, use this method.
    • Fluent Bit is required
cd client
git clone [email protected]:tetoraorg/isucon-setup.git /tmp/isucon-setup
cp /tmp/isucon-setup/fluent-bit .
export DASHBOARD_HOST={{hostname of dashboard}} # default is localhost
fluent-bit -c ./fluent-bit/fluent-bit.conf

Example

Nginx

curl localhost

Slow query log

make sure turning on Slow query log

# in mysql
SELECT SLEEP(1);