Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Generate dashboard configmap from separate json files #667

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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