Skip to content

Commit

Permalink
Enable public dashboard (#155)
Browse files Browse the repository at this point in the history
* Enable public dashboard

Signed-off-by: tanvigour <[email protected]>

* install load balancer

Signed-off-by: tanvigour <[email protected]>

* install load balancer

Signed-off-by: tanvigour <[email protected]>

* install load balancer

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* connect kubernetes prometheus to grafana cloud

Signed-off-by: tanvigour <[email protected]>

* push all changes to dapr/test-infra

Signed-off-by: tanvigour <[email protected]>

Signed-off-by: tanvigour <[email protected]>
  • Loading branch information
tanvigour authored Dec 14, 2022
1 parent 35663f1 commit d0d3a23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dapr-longhaul-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,21 @@ jobs:
helm list -n ${{ env.DAPR_MONITORING }} | grep grafana && echo "GRAF_PRESENT=true" >> $GITHUB_ENV || echo "Grafana not present."
- name: Preparing ${{ env.TEST_CLUSTER }} cluster for test by installing grafana if not present
if: env.TEST_CLUSTER != '' && env.GRAF_PRESENT != 'true'
working-directory: ./longhaul
run: |
helm repo add grafana https://grafana.github.io/helm-charts
helm upgrade --install grafana grafana/grafana -n ${{ env.DAPR_MONITORING }}
helm upgrade --install grafana grafana/grafana -n ${{ env.DAPR_MONITORING }} -f ./grafana-config/values.yaml
kubectl get pods -n ${{ env.DAPR_MONITORING }}
- name: check if prometheus already exists
if: env.TEST_CLUSTER != ''
run: |
helm list -n ${{ env.DAPR_MONITORING }} | grep prometheus && echo "PROM_PRESENT=true" >> $GITHUB_ENV || echo "Prometheus not present."
- name: Preparing ${{ env.TEST_CLUSTER }} cluster for test by installing prometheus if not present
if: env.TEST_CLUSTER != '' && env.PROM_PRESENT != 'true'
working-directory: ./longhaul
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm upgrade --install dapr-prom prometheus-community/prometheus -n ${{ env.DAPR_MONITORING }} --version 14.12.0 --set server.retention="30d"
helm upgrade --install dapr-prom prometheus-community/prometheus -n ${{ env.DAPR_MONITORING }} -f ./prometheus-config/values.yaml --version 14.12.0 --set server.retention="30d" --set server.remoteWrite[0].basic_auth.password="${{ secrets.GRAFANA_PROM_KEY }}"
kubectl get pods -n ${{ env.DAPR_MONITORING }}
# Deploy dapr to k8s
- name: Create dapr namespace, if it doesn't exist
Expand Down
3 changes: 3 additions & 0 deletions grafana-config/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grafana.ini:
feature_toggles:
publicDashboards: true
5 changes: 5 additions & 0 deletions prometheus-config/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
server:
remoteWrite:
- url: "https://prometheus-us-central2.grafana.net/api/prom/push"
basic_auth:
username: 677259

0 comments on commit d0d3a23

Please sign in to comment.