stephenyeargin / hubot-grafana

📈🤖 Query Grafana dashboards
http://docs.grafana.org/tutorials/hubot_howto/
MIT License
154 stars 48 forks source link

Image uploads to S3 bucket with zero size. #56

Closed SURAJTHEGREAT closed 6 years ago

SURAJTHEGREAT commented 7 years ago

Hi I am successfully able to put .png file to S3 bucket , but size is zero bytes.

[Fri May 19 2017 05:21:52 GMT+0000 (UTC)] DEBUG Uploading file: 27032 bytes, content-type[image/png] [Fri May 19 2017 05:21:52 GMT+0000 (UTC)] DEBUG filename [Fri May 19 2017 05:21:52 GMT+0000 (UTC)] DEBUG graphs/59515bcabb9abb59c31ab44a0b3557635238aa10.png [Fri May 19 2017 05:21:55 GMT+0000 (UTC)] DEBUG inside response

But _header: 'POST / /graphs/59515bcabb9abb59c31ab44a0b3557635238aa10.png upload in S3 is zero bytes,

Can anyone say where does it store the png file locally ?

stephenyeargin commented 7 years ago

So the file is loaded into memory after being retrieved from your Grafana instance rather than written to disk (the images are usually fairly small). One thing to check is to make sure that the PNG file is rendering correctly when you directly visit visit the "Direct link rendered image" link when clicking "Share" on a particular graph.

screen shot 2017-05-19 at 5 16 00 pm

stephenyeargin commented 6 years ago

Closing this off since it's a bit stale. Let me know if you are still having trouble with it.