Skip to content

Commit 00c1e91

Browse files
Merge pull request #217 from mintel/fix-location-of-grafana-repo
update the location of our grafana repo now that it's moved
2 parents 4d2924a + 6529e1c commit 00c1e91

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

modules/grafana/Makefile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1414
CONTAINER_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 = .
1717
else
18-
TMP_CORE_CLUSTER_JSONNET = /tmp/core-cluster-jsonnet
18+
TMP_MONITORING_CLUSTER_JSONNET = /tmp/monitoring-cluster-jsonnet
1919
endif
2020
TMP_GRAFANA_DATASOURCES = /tmp/grafana-datasources.yaml
2121

2222
UID=$(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

2626
ifeq (${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.
5757
else
58-
@git -C "$(TMP_CORE_CLUSTER_JSONNET)" pull
58+
@git -C "$(TMP_MONITORING_CLUSTER_JSONNET)" pull
5959
endif
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

Comments
 (0)