Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Supporting Google Cloud Storage for external images #8370

Closed
theckman opened this issue May 13, 2017 · 6 comments
Closed

Comments

@theckman
Copy link
Contributor

Hi there,

Thank you for your hard work on Grafana. So far it's been simple to deploy and use, and it looks awesome.

We're currently running the latest build of Grafana with a Prometheus backend. I was researching how to share images of graphs to my team via Slack, and found that you can configure Grafana to generate an image and push it to S3. Awesome! That should be simple enough to get going.

When seeing only S3 was supported, I could see that maybe becoming a slight hindrance in the future for me. Companies are starting to migrate things to GCP, mine included, so I can see there being interest in wanting to use Google Cloud Storage (their S3-equivalent product) for hosting all of their objects. I think this would include images generated from Grafana.

Has adding this support been considered for Grafana yet? I did some research and didn't find any tickets that seemed related.

@yesoreyeram
Copy link
Contributor

We are interested in Azure storage as well.

@syepes
Copy link
Contributor

syepes commented Jun 17, 2017

+1 for gcs

@saada
Copy link
Contributor

saada commented Jul 30, 2017

@yesoreyeram I made a PR for Azure storage here #8956

chuhlomin added a commit to chuhlomin/grafana that referenced this issue Aug 4, 2017
bergquist pushed a commit that referenced this issue Sep 15, 2017
@bergquist
Copy link
Contributor

Closed by #8990

@bergquist bergquist added this to the 4.6 milestone Oct 12, 2017
@PaulMazzuca
Copy link

Is there an example of what a gcs configuration should look like or if any special permissions need to be applied on the Google Cloud, because under the current configuration I receive a 404 in the logs?

I have a bucket called "test-bucket", and I have stored my service key in "/path/to/service/key.json". The bucket exists and the service key has permissions to write to gcs.

My config

[external_image_storage]
provider = gcs

[external_image_storage.gcs]
key_file = /path/to/service/key.json
bucket_name = test-bucket

however, the Grafana logs are returning

lvl=dbug msg="Image rendered" logger=png-renderer path=/var/lib/grafana/png/DL2HETwpZu0rIqR9CvL6.png
lvl=dbug msg="Sending POST request to GCS" logger=gcsuploader
lvl=eror msg="Failed to upload alert panel image." logger=alerting.notifier error="GCS response status code 404"

@PaulMazzuca
Copy link

Just FYI, the configuration should be "bucket" not "bucket name" or maybe "bucket_name" as the configuration documentation suggests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants