diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35f01e914..c08224c5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,65 @@ jobs: ./hack/scripts/update-chart-dependencies.sh make ci + - name: Test Grafana Dashboards + run: | + echo "all db dashboards" + helm template charts/kubedb-grafana-dashboards + echo "-----------------------------------------" + echo "elasticsearch dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=elasticsearch \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "kafka dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=kafka \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "mariadb dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=mariadb \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "mongodb dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=mongodb \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "mysql dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=mysql \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "perconaxtradb dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=perconaxtradb \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "postgres dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=postgres \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "proxysql dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=proxysql \ + --set app.name=mydb \ + --set app.namespace=demo + echo "-----------------------------------------" + echo "redis dashboard with alerts" + helm template charts/kubedb-grafana-dashboards \ + --set resources[0]=redis \ + --set app.name=mydb \ + --set app.namespace=demo + kubernetes: name: Kubernetes runs-on: ubuntu-20.04 @@ -113,65 +172,6 @@ jobs: kubectl apply -f crds/kubedb-crds.yaml metrics-configuration-checker --content=./charts/kubedb-metrics/templates/ - - name: Test Grafana Dashboards - run: | - echo "all db dashboards" - helm template charts/kubedb-grafana-dashboards - echo "-----------------------------------------" - echo "elasticsearch dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=elasticsearch \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "kafka dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=kafka \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "mariadb dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=mariadb \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "mongodb dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=mongodb \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "mysql dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=mysql \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "perconaxtradb dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=perconaxtradb \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "postgres dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=postgres \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "proxysql dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=proxysql \ - --set app.name=mydb \ - --set app.namespace=demo - echo "-----------------------------------------" - echo "redis dashboard with alerts" - helm template charts/kubedb-grafana-dashboards \ - --set resources[0]=redis \ - --set app.name=mydb \ - --set app.namespace=demo - - name: Test Monitoring run: | export LICENSE_FILE=/tmp/license.txt