-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 725 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: help install generate test up down logs clean
help:
@echo "Targets:"
@echo " install pip install -e .[dev]"
@echo " generate Render grafanalib dashboards into dashboards/*.json"
@echo " test Run pytest"
@echo " up docker compose up -d (Grafana on http://localhost:3000)"
@echo " down docker compose down"
@echo " logs Tail Grafana logs"
@echo " clean Remove generated dashboard JSON"
install:
pip install -e ".[dev]"
generate:
python scripts/generate.py
test:
pytest -v
up: generate
docker compose up -d
@echo "Grafana → http://localhost:3000 (admin / admin)"
down:
docker compose down
logs:
docker compose logs -f grafana
clean:
rm -f dashboards/*.json