generated from hybrid-cloud-patterns/example
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from validatedpatterns/grafana
grafana
- Loading branch information
Showing
11 changed files
with
564 additions
and
324 deletions.
There are no files selected for viewing
38 changes: 23 additions & 15 deletions
38
charts/all/medical-diagnosis/grafana/templates/grafana.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
apiVersion: integreatly.org/v1alpha1 | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: Grafana | ||
metadata: | ||
name: xraylab-grafana | ||
namespace: {{ .Values.global.xraylab.namespace }} | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
labels: | ||
dashboards: "grafana" | ||
spec: | ||
deployment: | ||
skipCreateAdminAccount: true | ||
envFrom: | ||
- secretRef: | ||
name: grafana-creds | ||
ingress: | ||
enabled: true | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: grafana | ||
env: | ||
- name: GF_SECURITY_ADMIN_USER | ||
valueFrom: | ||
secretKeyRef: | ||
key: GF_SECURITY_ADMIN_USER | ||
name: grafana-creds | ||
- name: GF_SECURITY_ADMIN_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: GF_SECURITY_ADMIN_PASSWORD | ||
name: grafana-creds | ||
route: | ||
spec: {} | ||
config: | ||
auth: | ||
disable_signout_menu: true | ||
disable_signout_menu: "true" | ||
auth.anonymous: | ||
enabled: true | ||
enabled: "true" | ||
log: | ||
level: warn | ||
mode: console | ||
dashboardLabelSelector: | ||
- matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- grafana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 35 additions & 11 deletions
46
charts/all/medical-diagnosis/grafana/templates/mysql-datasource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,42 @@ | ||
apiVersion: integreatly.org/v1alpha1 | ||
kind: GrafanaDataSource | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDatasource | ||
metadata: | ||
name: mysql-grafana-datasource | ||
namespace: {{ .Values.global.xraylab.namespace }} | ||
annotations: | ||
argocd.argoproj.io/hook: PostSync | ||
spec: | ||
datasources: | ||
- type: {{ .Values.dataSources.type }} | ||
name: {{ .Values.dataSources.name }} | ||
access: {{ .Values.dataSources.access }} | ||
url: ${GF_DATASRC_URL} | ||
database: ${GF_DATASRC_DB} | ||
user: ${GF_DATASRC_USER} | ||
secureJsonData: | ||
password: ${GF_DATASRC_PASSWORD} | ||
valuesFrom: | ||
- targetPath: "user" | ||
valueFrom: | ||
secretKeyRef: | ||
name: grafana-creds | ||
key: GF_DATASRC_USER | ||
- targetPath: "database" | ||
valueFrom: | ||
secretKeyRef: | ||
name: grafana-creds | ||
key: GF_DATASRC_DB | ||
- targetPath: "url" | ||
valueFrom: | ||
secretKeyRef: | ||
name: grafana-creds | ||
key: GF_DATASRC_URL | ||
- targetPath: "secureJsonData.password" | ||
valueFrom: | ||
secretKeyRef: | ||
name: grafana-creds | ||
key: GF_DATASRC_PASSWORD | ||
instanceSelector: | ||
matchLabels: | ||
dashboards: "grafana" | ||
datasource: | ||
type: {{ .Values.dataSources.type }} | ||
name: {{ .Values.dataSources.name }} | ||
access: {{ .Values.dataSources.access }} | ||
url: ${GF_DATASRC_URL} | ||
database: ${GF_DATASRC_DB} | ||
user: ${GF_DATASRC_USER} | ||
secureJsonData: | ||
password: ${GF_DATASRC_PASSWORD} | ||
name: mysql-grafana-datasource.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.