@@ -12,16 +12,16 @@ GRAFANA_SYNC_DOCKER_NAME = grafana_sync
1212
1313# Don't change these, unless you understand how they're used in the scripts below and accept the repurcussions
1414CONTAINER_DASHBOARD_DIRECTORY = /app/dashboards
15- ifeq ($(shell git remote get-url origin) ,git@gitlab.com :mintel/satoshi/kubernetes/jsonnet/sre/core -cluster-jsonnet.git)
16- TMP_CORE_CLUSTER_JSONNET = .
15+ ifeq ($(shell git remote get-url origin) ,git@gitlab.com :mintel/satoshi/kubernetes/jsonnet/sre/monitoring -cluster-jsonnet.git)
16+ TMP_MONITORING_CLUSTER_JSONNET = .
1717else
18- TMP_CORE_CLUSTER_JSONNET = /tmp/core -cluster-jsonnet
18+ TMP_MONITORING_CLUSTER_JSONNET = /tmp/monitoring -cluster-jsonnet
1919endif
2020TMP_GRAFANA_DATASOURCES = /tmp/grafana-datasources.yaml
2121
2222UID =$(shell id -u)
2323
24- .PHONY : grafana/develop grafana/develop-oss grafana/cleanup grafana/aws-profile-check grafana/core -cluster-jsonnet grafana/setup-local-grafana-mintel grafana/setup-local-grafana-oss grafana/setup-grafana-syncer
24+ .PHONY : grafana/develop grafana/develop-oss grafana/cleanup grafana/aws-profile-check grafana/monitoring -cluster-jsonnet grafana/setup-local-grafana-mintel grafana/setup-local-grafana-oss grafana/setup-grafana-syncer
2525
2626ifeq (${CREATE_GRAFANA_INSTANCE}, true)
2727# # Develop grafana dashboards using live datasources. Mintel internal use only.
@@ -48,20 +48,20 @@ grafana/aws-profile-check:
4848 @[ " ${AWS_PROFILE} " ] || ( echo " >> ERROR: AWS_PROFILE is not set. Please login with \" aws sso login --profile <name>\" and set this variable, or try \" make grafana/develop-oss\" to edit dashboards with no datasources defined." ; exit 1 )
4949 @echo " AWS_PROFILE=${AWS_PROFILE} "
5050
51- grafana/core -cluster-jsonnet :
52- @if [ ! -d " $( TMP_CORE_CLUSTER_JSONNET ) " ]; then \
53- git clone git@gitlab.com:mintel/satoshi/kubernetes/jsonnet/sre/core -cluster-jsonnet.git --depth 1 -b ${CORE_CLUSTER_JSONNET_BRANCH} ${TMP_CORE_CLUSTER_JSONNET } ; \
51+ grafana/monitoring -cluster-jsonnet :
52+ @if [ ! -d " $( TMP_MONITORING_CLUSTER_JSONNET ) " ]; then \
53+ git clone git@gitlab.com:mintel/satoshi/kubernetes/jsonnet/sre/monitoring -cluster-jsonnet.git --depth 1 -b ${CORE_CLUSTER_JSONNET_BRANCH} ${TMP_MONITORING_CLUSTER_JSONNET } ; \
5454 fi
55- ifeq ($(TMP_CORE_CLUSTER_JSONNET ) ,.)
56- # You are developing in core -cluster-jsonnet; using local grafana-operator manifests to set up Grafana datasources.
55+ ifeq ($(TMP_MONITORING_CLUSTER_JSONNET ) ,.)
56+ # You are developing in monitoring -cluster-jsonnet; using local grafana-operator manifests to set up Grafana datasources.
5757else
58- @git -C "$(TMP_CORE_CLUSTER_JSONNET )" pull
58+ @git -C "$(TMP_MONITORING_CLUSTER_JSONNET )" pull
5959endif
6060
61- grafana/setup-local-grafana-mintel : grafana/aws-profile-check grafana/core -cluster-jsonnet
61+ grafana/setup-local-grafana-mintel : grafana/aws-profile-check grafana/monitoring -cluster-jsonnet
6262 @docker pull $(GRAFANA_IMAGE )
63- @mkdir -p ${TMP_CORE_CLUSTER_JSONNET } /provisioning/datasources
64- @${BUILD_HARNESS_EXTENSIONS_PATH} /modules/grafana/scripts/patch_datasources.sh " ${TMP_CORE_CLUSTER_JSONNET } " > ${TMP_GRAFANA_DATASOURCES}
63+ @mkdir -p ${TMP_MONITORING_CLUSTER_JSONNET } /provisioning/datasources
64+ @${BUILD_HARNESS_EXTENSIONS_PATH} /modules/grafana/scripts/patch_datasources.sh " ${TMP_MONITORING_CLUSTER_JSONNET } " > ${TMP_GRAFANA_DATASOURCES}
6565 @. ${BUILD_HARNESS_EXTENSIONS_PATH} /modules/grafana/scripts/datasource_credentials.sh && \
6666 MINTEL_BASE_URL=' $(MINTEL_BASE_URL)' \
6767 docker run \
0 commit comments