Comments (7)
Suspicion is that the other graphs aren't returning fast enough to be attached, which means we need to increase the TTL somehow to wait around for the rendering process to finish. Anything interesting in the bot's logs (HUBOT_LOG_LEVEL=debug
is great for this, though verbose)?
from hubot-grafana.
ok thank you! will check out the logs
from hubot-grafana.
Ok! Got something promising:
[Mon Dec 16 2019 13:05:21 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:21 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:23 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:24 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:27 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:27 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:29 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:29 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:29 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:29 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:34 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:34 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:36 GMT-0500 (EST)] DEBUG Uploading file: 1722 bytes, content-type[text/html; charset=UTF-8]
[Mon Dec 16 2019 13:05:36 GMT-0500 (EST)] DEBUG Uploading file: 15664 bytes, content-type[image/png]
[Mon Dec 16 2019 13:05:36 GMT-0500 (EST)] DEBUG SlackClient#send() room: , message: [object Object]
[Mon Dec 16 2019 13:05:36 GMT-0500 (EST)] DEBUG Uploading file: 14997 bytes, content-type[image/png]
Those last 2 messages with 14k bytes are the successful images. It seems the failed images are being received as "text/html" and the images are "image/png"
from hubot-grafana.
Hi just wanted to check in? Are there any config changes we can try?
from hubot-grafana.
Unfortunately, I can't think of anything else. The contents of those HTML pages is likely a rendering error, perhaps from server memory running short? PhantomJS, the tool used in Grafana Server, is an inexact science for rendering those images -- it's a headless browser that attempts to run the provided JavaScript and return a PNG. If anything goes wrong in that process, it spits out an exit code and the endpoint returns a HTTP/500.
I'm guessing that going to the individual panels and rendering an image is working?
from hubot-grafana.
I see, thank you for checking it out. The server running hubot is healthy / overprovisioned, I think the bot just needs to sleep/wait after it requests images and before it tries to push images to Slack?
from hubot-grafana.
The issue was provisioning on the Grafana Server side! Thank you @stephenyeargin
from hubot-grafana.
Related Issues (20)
- ERROR SyntaxError: Unexpected token < in JSON at position 0 HOT 3
- graf db nginx-lua Why is the grafana homepage returned? HOT 8
- TimeZone support HOT 2
- Grafana 7: Full screen leads to localhost:3000 redirect HOT 4
- ERROR SyntaxError: Unexpected token < in JSON at position 0 HOT 3
- hubot-grafana does not work for Grafana 8 HOT 7
- Upgrade from 2.5.2 to 3.0.1: dashboards can't be accessed by slug anymore HOT 5
- Can only receive 1 image by each query which queries all panels in the dashboard HOT 2
- Allow the bot to respond in a thread HOT 2
- S3 Region breaks existing setup HOT 2
- Support for @hubot-friends/hubot-slack
- feat: clean the NPM package to make its footprint smaller
- Getting rid of the obsolete request dependency
- Tests are too slow or timing out HOT 2
- Refactor platform specific actions to adapters? HOT 3
- Download method needs API key in header HOT 3
- [Windows] Unable to run `npm test` HOT 4
- Let's do some big refactoring
- Typings
- Bot will respond multiple times when Grafana is a bit slow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-grafana.