Skip to content

Commit

Permalink
chore: Generate dashboard configmap from separate json files
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
  • Loading branch information
Arthur Silva Sens authored and ArthurSens committed Jun 22, 2024
1 parent 34a189d commit 65f94cf
Show file tree
Hide file tree
Showing 5 changed files with 5,610 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/generate-dashboards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Grafana Dashboard Apply
on:
pull_request:
paths:
- 'prombench/manifests/cluster-infra/grafana_dashboard_dashboards_noparse.yaml'
- 'prombench/manifests/cluster-infra/dashboards/**'
push:
paths:
- 'prombench/manifests/cluster-infra/grafana_dashboard_dashboards_noparse.yaml'
- 'prombench/manifests/cluster-infra/dashboards/**'
jobs:
verify_dashboard_generation:
name: Verify Dashboard Generation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify dashboard generation
run: make --always-make generate-dashboards-cm && git diff --exit-code
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DOCKER_REPO ?= prominfra

.PHONY: all
all: precheck style check_license lint build test unused docs-check
all: precheck style check_license lint build test unused docs-check generate-dashboards-cm

.PHONY: docker
docker:
Expand All @@ -24,4 +24,8 @@ docs:
docs-check:
./scripts/genflagdocs.sh check

.PHONY: generate-dashboards-cm
generate-dashboards-cm:
./scripts/sync-dashboards-to-configmap.sh

include Makefile.common
Loading

0 comments on commit 65f94cf

Please sign in to comment.