Add external_image_storage S3 in grafana config
This commit is contained in:
parent
1edab47392
commit
c831457f60
2 changed files with 22 additions and 0 deletions
grafana
|
@ -288,3 +288,17 @@ path = {{ server.dashboards.path }}
|
||||||
;enabled = false
|
;enabled = false
|
||||||
;path = /var/lib/grafana/dashboards
|
;path = /var/lib/grafana/dashboards
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
#################################### External Image Storage ##############
|
||||||
|
[external_image_storage]
|
||||||
|
# You can choose between (s3, webdav, gcs)
|
||||||
|
provider = {{ server.external_image_storage.provider }}
|
||||||
|
|
||||||
|
[external_image_storage.s3]
|
||||||
|
bucket_url = {{ server.external_image_storage.provider.bucket_url }}
|
||||||
|
bucket = {{ server.external_image_storage.provider.bucket }}
|
||||||
|
region = {{ server.external_image_storage.provider.region }}
|
||||||
|
path = {{ server.external_image_storage.provider.path }}
|
||||||
|
access_key = {{ server.external_image_storage.provider.access_key }}
|
||||||
|
secret_key = {{ server.external_image_storage.provider.secret_key }}
|
||||||
|
|
|
@ -48,6 +48,14 @@ Debian:
|
||||||
static: /usr/share/grafana/public
|
static: /usr/share/grafana/public
|
||||||
dashboards:
|
dashboards:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
external_image_storage:
|
||||||
|
provider: ""
|
||||||
|
bucket_url: ""
|
||||||
|
bucket: ""
|
||||||
|
region: ""
|
||||||
|
path: ""
|
||||||
|
access_key: ""
|
||||||
|
secret_key: ""
|
||||||
{%- endload %}
|
{%- endload %}
|
||||||
|
|
||||||
{%- set server = salt['grains.filter_by'](server_defaults, merge=salt['pillar.get']('grafana:server')) %}
|
{%- set server = salt['grains.filter_by'](server_defaults, merge=salt['pillar.get']('grafana:server')) %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue