Skip to content

Commit

Permalink
Merge pull request #282 from akash4sh/main
Browse files Browse the repository at this point in the history
config: add condtion for openebs dashboard
  • Loading branch information
akash4sh authored Jun 12, 2024
2 parents 26d2e58 + 4ba663d commit 5f50302
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dependencies:
description: A Helm chart for Monitoring
name: monitoring
type: application
version: 0.1.22
version: 0.1.23
4 changes: 3 additions & 1 deletion charts/monitoring/templates/openebs-cstor-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.dashboards.openebs }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -2695,4 +2696,5 @@ data:
"uid": "ZzAis83Wz",
"version": 11,
"weekStart": ""
}
}
{{- end }}
2 changes: 2 additions & 0 deletions charts/monitoring/templates/openebs-cstor-servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.dashboards.openebs }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down Expand Up @@ -40,3 +41,4 @@ spec:
selector:
matchLabels:
openebs.io/cas-type: cstor
{{- end }}
4 changes: 4 additions & 0 deletions charts/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,17 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

dashboards:
openebs: true

datasources:
prometheus:
url: http://prometheus-kube-prometheus-prometheus:9090
prometheusAlertmanager:
url: http://prometheus-kube-prometheus-alertmanager:9093
jsonApi:
url: http://proact-scheduler.capten.svc.cluster.local:5000/api/v1/schedule/

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 5f50302

Please sign in to comment.