EFK(Elasticsearch, Fluent Bit, Kibana) dashboard for ISUCON
Nginx(s),Slow query log(s)
-> Fluent Bit(s)
-> Fluent Bit
-> Elasticsearch
-> Kibana
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';
- start EFK server (with Docker)
cd server
docker compose up --build
- 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
- install from official method
cd client
git clone git@github.com: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
curl localhost
make sure turning on Slow query log
# in mysql
SELECT SLEEP(1);