k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/dashboards/Makefile (about)

     1  SOURCES := $(wildcard *.dashboard.py)
     2  DASHBOARDS := $(SOURCES:%.dashboard.py=%.json)
     3  
     4  init:
     5  	pip install -r requirements.txt
     6  
     7  %.json: %.dashboard.py defaults.py
     8   	# Setting PYTHONPATH to $PWD is a workaround for https://github.com/weaveworks/grafanalib/issues/58
     9  	PYTHONPATH="$$PYTHONPATH:$(shell pwd)" generate-dashboard  "$<" | python3 -m json.tool > "$@"
    10  
    11  all: $(DASHBOARDS)