Skip to content

Commit

Permalink
chore: Generate dashboard configmap from separate json files (#667)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <[email protected]>
Co-authored-by: Arthur Silva Sens <[email protected]>
  • Loading branch information
ArthurSens and Arthur Silva Sens authored Oct 14, 2024
1 parent 1ac3671 commit 18c4931
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 18c4931

Please sign in to comment.