Skip to content

tetoraorg/isucon-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published