|
23 | 23 | -e "local build = import 'dashboard/build/from_config.libsonnet'; local file = importstr '${CONFIG}'; build(std.parseYaml(file))" \ |
24 | 24 | -o ${OUTPUT} |
25 | 25 |
|
26 | | - |
27 | | -_build-static-prometheus: |
28 | | -ifndef DATASOURCE |
29 | | - @echo 1>&2 "DATASOURCE must be set" |
30 | | - false |
31 | | -endif |
32 | | - # JOB is optional, default is "tarantool" |
33 | | - # WITH_INSTANCE_VARIABLE is optional, default is "FALSE" |
34 | | - # TITLE is optional, default is "Tarantool dashboard" for plain dashboard |
35 | | - # and "Tarantool Data Grid dashboard" for TDG one |
36 | | - jsonnet -J ./vendor -J . \ |
37 | | - --ext-str DASHBOARD_TEMPLATE=${DASHBOARD_TEMPLATE} \ |
38 | | - --ext-str DATASOURCE_TYPE='prometheus' \ |
39 | | - --ext-str DATASOURCE=${DATASOURCE} \ |
40 | | - --ext-str JOB=${JOB} \ |
41 | | - --ext-str WITH_INSTANCE_VARIABLE=${WITH_INSTANCE_VARIABLE} \ |
42 | | - --ext-str TITLE='${TITLE}' \ |
43 | | - dashboard/build/from_ext_var.jsonnet -o ${OUTPUT_STATIC_DASHBOARD} |
44 | | - |
45 | | -.PHONY: build-static-prometheus |
46 | | -build-static-prometheus: |
47 | | - @echo "This command is deprecated. Please, migrate to using 'CONFIG=config.yml make build' instead" |
48 | | - ${MAKE} DASHBOARD_TEMPLATE='Tarantool' _build-static-prometheus |
49 | | - |
50 | | -.PHONY: build-static-tdg-prometheus |
51 | | -build-static-tdg-prometheus: |
52 | | - @echo "This command is deprecated. Please, migrate to using 'CONFIG=config.yml make build' instead" |
53 | | - ${MAKE} DASHBOARD_TEMPLATE='TDG' _build-static-prometheus |
54 | | - |
55 | | - |
56 | | -_build-static-influxdb: |
57 | | -ifndef DATASOURCE |
58 | | - @echo 1>&2 "DATASOURCE must be set" |
59 | | - false |
60 | | -endif |
61 | | - # POLICY is optional, default is "autogen" |
62 | | - # MEASUREMENT is optional, default is "tarantool_http" |
63 | | - # WITH_INSTANCE_VARIABLE is optional, default is "FALSE" |
64 | | - # TITLE is optional, default is "Tarantool dashboard" for plain dashboard |
65 | | - # and "Tarantool Data Grid dashboard" for TDG one |
66 | | - jsonnet -J ./vendor -J . \ |
67 | | - --ext-str DASHBOARD_TEMPLATE=${DASHBOARD_TEMPLATE} \ |
68 | | - --ext-str DATASOURCE_TYPE='influxdb' \ |
69 | | - --ext-str DATASOURCE=${DATASOURCE} \ |
70 | | - --ext-str POLICY=${POLICY} \ |
71 | | - --ext-str MEASUREMENT=${MEASUREMENT} \ |
72 | | - --ext-str WITH_INSTANCE_VARIABLE=${WITH_INSTANCE_VARIABLE} \ |
73 | | - --ext-str TITLE='${TITLE}' \ |
74 | | - dashboard/build/from_ext_var.jsonnet -o ${OUTPUT_STATIC_DASHBOARD} |
75 | | - |
76 | | -.PHONY: build-static-influxdb |
77 | | -build-static-influxdb: |
78 | | - @echo "This command is deprecated. Please, migrate to using 'CONFIG=config.yml make build' instead" |
79 | | - ${MAKE} DASHBOARD_TEMPLATE='Tarantool' _build-static-influxdb |
80 | | - |
81 | | -.PHONY: build-static-tdg-influxdb |
82 | | -build-static-tdg-influxdb: |
83 | | - @echo "This command is deprecated. Please, migrate to using 'CONFIG=config.yml make build' instead" |
84 | | - ${MAKE} DASHBOARD_TEMPLATE='TDG' _build-static-influxdb |
85 | | - |
86 | | - |
87 | 26 | .PHONY: test-deps |
88 | 27 | test-deps: build-deps |
89 | 28 | go install github.com/google/go-jsonnet/cmd/ [email protected] |
|
0 commit comments