Skip to content

Commit

Permalink
feat: deploy grafana on-call
Browse files Browse the repository at this point in the history
locmai committed Jan 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ae685b3 commit 38eec23
Showing 2 changed files with 90 additions and 0 deletions.
88 changes: 88 additions & 0 deletions system/templates/grafana-oncall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{{- if .Values.oncall.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.argocd.project }}-oncall
namespace: {{ .Values.argocd.namespace }}
annotations:
argocd.argoproj.io/sync-wave: "0"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .Values.argocd.project }}
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
destination:
name: in-cluster
namespace: ingress-nginx
source:
chart: oncall
repoURL: https://grafana.github.io/helm-charts
targetRevision: 1.1.2
helm:
releaseName: {{ .Values.argocd.project }}-oncall
values: |
ingress:
enabled: false
# Whether to install ingress controller
ingress-nginx:
enabled: false
# Install cert-manager as a part of the release
cert-manager:
enabled: false
installCRDs: false
database:
# can be either mysql or postgresql
type: mysql
# MySQL is included into this release for the convenience.
# It is recommended to host it separately from this release
# Set mariadb.enabled = false and configure externalMysql
mariadb:
enabled: true
auth:
database: oncall
primary:
persistence:
enabled: false
extraEnvVars:
- name: MARIADB_COLLATE
value: utf8mb4_unicode_ci
- name: MARIADB_CHARACTER_SET
value: utf8mb4
secondary:
persistence:
enabled: false
extraEnvVars:
- name: MARIADB_COLLATE
value: utf8mb4_unicode_ci
- name: MARIADB_CHARACTER_SET
value: utf8mb4
redis:
enabled: true
master:
persistence:
enabled: false
replica:
persistence:
enabled: false
sentinel:
persistence:
enabled: false
rabbitmq:
enabled: true
persistence:
enabled: false
broker:
type: rabbitmq
grafana:
enabled: false
{{- end }}
2 changes: 2 additions & 0 deletions system/templates/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -77,6 +77,8 @@ spec:
enabled: false
ingress:
enabled: false
plugins:
- grafana-oncall-app
grafana.ini:
users:
auto_assign_org_role: 'Admin'

0 comments on commit 38eec23

Please sign in to comment.