Skip to content

Commit

Permalink
contrib: add grafana configMap
Browse files Browse the repository at this point in the history
This dashboard will be pulled and deployed by app-interface
to their grafana instances. It is generated from the
existing dashboard to maintain one dashboard.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Oct 21, 2021
1 parent 7bfc9f9 commit 7c258d3
Show file tree
Hide file tree
Showing 4 changed files with 1,902 additions and 22 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ docs-build:
rsync --recursive --delete-after --exclude 'v4.*' --exclude .git\
./book/ $(DOCS_DIR)/

CONTRIB_DIR ?= contrib/openshift
# Updates the contrib grafana with the contents of the local-dev version to
# avoid maintaining two versions
.PHONY: grafana-configmap-gen
grafana-configmap-gen:
sed -e '/GRAFANA_MANIFEST/{r local-dev/grafana/provisioning/dashboards/dashboard.json' -e 'd' -e '}' \
$(CONTRIB_DIR)/grafana/dashboard-clair.configmap.yaml.tpl \
> $(CONTRIB_DIR)/grafana/dashboard-clair.configmap.yaml

# runs unit tests
.PHONY: unit
unit:
Expand Down

0 comments on commit 7c258d3

Please sign in to comment.