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 <[email protected]>
  • Loading branch information
Arthur Silva Sens committed Apr 26, 2024
1 parent 4d28fbd commit afe6507
Show file tree
Hide file tree
Showing 6 changed files with 5,704 additions and 73 deletions.
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/dashboards_noparse.yaml'
- 'prombench/manifests/cluster-infra/dashboards/**'
push:
paths:
- 'prombench/manifests/cluster-infra/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 afe6507

Please sign in to comment.