Stock tracking for the Summer of Making shop using Prometheus metrics.
Uses the SoM Monitor API by Skyfall for shop data <3
🌍 View dashboard on grafana.slevel.xyz
This project uses Python (3.9+) and uv for development.
- Clone the repo
uv run main.py- Head to http://localhost:9040/metrics to see the metrics
- Download the example Compose file from deployment/docker-compose.yml. Feel free to adjust it to your needs.
- Start it with
docker-compose up -d - Metrics should now be available at http://localhost:9040/metrics
Start tracking the metrics by adding Daydream Watcher as a scrape config to a Prometheus-compatible database (e.g. Prometheus, VictoriaMetrics).
scrape_configs:
- job_name: som-watcher
scrape_interval: "10s"
static_configs:
- targets: ["som-watcher:9040"]First, check existing tags on Docker Hub.
Then, use the release-new-version.sh shell script, e.g.
./release-new-version.sh 0.2.1It will
- Bump the version in
pyproject.toml - Create and push a Git tag for the new version
- Build and publish the Docker image to Docker Hub
Then, manually check that the version bump commit is as expected, and git push it.
