1
0
Fork 0
mirror of synced 2024-11-16 14:15:35 -05:00

Add external_image_storage S3 in grafana config

This commit is contained in:
abednarik 2017-11-17 17:21:36 -03:00
parent 1edab47392
commit c831457f60
2 changed files with 22 additions and 0 deletions

View file

@ -288,3 +288,17 @@ path = {{ server.dashboards.path }}
;enabled = false
;path = /var/lib/grafana/dashboards
{%- 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 }}

View file

@ -48,6 +48,14 @@ Debian:
static: /usr/share/grafana/public
dashboards:
enabled: false
external_image_storage:
provider: ""
bucket_url: ""
bucket: ""
region: ""
path: ""
access_key: ""
secret_key: ""
{%- endload %}
{%- set server = salt['grains.filter_by'](server_defaults, merge=salt['pillar.get']('grafana:server')) %}