Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
/ wakatime-1 Public archive

self-hosted, local wakatime bootleg using grafana and postgres

Notifications You must be signed in to change notification settings

ruslandoga/wakatime-1

Repository files navigation

WakaTime with Grafana

This repo contains a docker-compose setup to run a local bootleg of WakaTime. It's composed of postgres, grafana, and a heartbeats ingester. Both grafana state and heartbeats are stored in postgres. "Overview" and "project" dashboards are imported into grafana on startup.

How-To:

# run postgres, grafana, and heartbeats ingester in background
> docker-compose up -d

# make wakatime send heartbeats to the local heartbeats ingester
# ingester port can be changed in docker-compose.yml
# api_key can be any lowercased uuid
> cat > ~/.wakatime.cfg << EOM
[settings]
api_url = http://localhost:4000
api_key = 406fe41f-6d69-4183-a4cc-121e0c524c2b
EOM

# open grafana
# default creds:
# username: admin
# password: admin
# grafana port can be changed in docker-compose.yml
> open http://localhost:3000

# to stop postgres, grafana, and heartbeats ingester
> docker-compose down

Overview dashboard

Overview dashboard screenshot

Project dashboard

Project dashboard screenshot

About

self-hosted, local wakatime bootleg using grafana and postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages