Fixing dashboard deployment
This commit is contained in:
parent
8975a18d8c
commit
fb4d21c23e
3 changed files with 39 additions and 4 deletions
|
@ -16,11 +16,11 @@ data:
|
|||
secureJsonData:
|
||||
password: {{ datanommer_ro_password }}
|
||||
jsonData:
|
||||
database: datanommer2
|
||||
database: datanommer
|
||||
default: true
|
||||
sslmode: "disable" # disable/require/verify-ca/verify-full
|
||||
maxOpenConns: 0 # Grafana v5.4+
|
||||
maxIdleConns: 2 # Grafana v5.4+
|
||||
connMaxLifetime: 14400 # Grafana v5.4+
|
||||
postgresVersion: 1200 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
||||
timescaledb: false
|
||||
timescaledb: true
|
||||
|
|
|
@ -54,7 +54,7 @@ spec:
|
|||
- name: 'GF_USERS_AUTO_ASSIGN_ORG_ROLE'
|
||||
value: 'Admin'
|
||||
- name: 'V'
|
||||
value: '16'
|
||||
value: '17'
|
||||
image: registry.hub.docker.com/grafana/grafana:latest
|
||||
name: dashboard
|
||||
ports:
|
||||
|
@ -64,6 +64,8 @@ spec:
|
|||
name: grafana-datasources
|
||||
- mountPath: /var/lib/grafana/dashboards
|
||||
name: grafana-dashboards
|
||||
- mountPath: /etc/grafana/provisioning/dashboards
|
||||
name: grafana-dashboards-provision
|
||||
serviceAccountName: monitor-dashboard
|
||||
volumes:
|
||||
- name: grafana-tls
|
||||
|
@ -74,4 +76,7 @@ spec:
|
|||
name: grafana-datasources
|
||||
- configMap:
|
||||
name: grafana-dashboards
|
||||
name: grafana-dashboards
|
||||
name: grafana-dashboards
|
||||
- configMap:
|
||||
name: grafana-dashboards-provision
|
||||
name: grafana-dashboards-provision
|
|
@ -0,0 +1,30 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
dashboards.yml: |
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
# <string> an unique provider name. Required
|
||||
- name: 'Preset Dashboards'
|
||||
# <int> Org id. Default to 1
|
||||
orgId: 1
|
||||
# <string> name of the dashboard folder.
|
||||
folder: ''
|
||||
# <string> folder UID. will be automatically generated if not specified
|
||||
folderUid: ''
|
||||
# <string> provider type. Default to 'file'
|
||||
type: file
|
||||
# <bool> disable dashboard deletion
|
||||
disableDeletion: false
|
||||
# <int> how often Grafana will scan for changed dashboards
|
||||
updateIntervalSeconds: 10
|
||||
# <bool> allow updating provisioned dashboards from the UI
|
||||
allowUiUpdates: false
|
||||
options:
|
||||
# <string, required> path to dashboard files on disk. Required when using the 'file' type
|
||||
path: /var/lib/grafana/dashboards
|
||||
# <bool> use folder names from filesystem to create folders in Grafana
|
||||
foldersFromFilesStructure: true
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: grafana-dashboards-provision
|
Loading…
Add table
Add a link
Reference in a new issue