Comments (6)
Yeah, the blocker for this so far has been assuring that everything continues to work with the various adapters. Hubot does not have great internal handling of the concept of an "envelope" (or whatever Hipchat/etc. calls it) so that the adapters can do the right thing™. PR #27 from @klynch offers similar functionality, but I had blocked it from merging for the reasons above.
If we can check all these off, it would be golden:
- IRC or shell users can continue to use the S3 adapter
- HipChat/Rocketchat/Slack adapter users have a single interface to their respective adapters for posting images natively
- New chat services (seems like a new one comes along every day) can follow the same pattern
from hubot-grafana.
The route I went with was ignoring what adapter might be in use, as from what I can tell the current slack adapter doesn't handle file uploads at the moment. So the Slack API Token is kept under the HUBOT_GRAFANA_
naming convention, then it's a simple post request with the file contents. That way, any IRC or other adapters will ignore the Slack code unless that environmental variable is present.
Could probably be implemented better if you were thinking of supporting even more services, at the moment it's just an additional if statement to check for the slack token vs S3 details.
from hubot-grafana.
Could probably be implemented better if you were thinking of supporting even more services, at the moment it's just an additional if statement to check for the slack token vs S3 details.
Yeah, simply from a roadmap perspective, I wanted to make it as universal as possible. I know that @torkelo has a desire to have a Slack specific integration in the future. From that post:
Grafana is going to ship with integrated Slack and Hipchat features some day but you do not have to wait for that.
So this package won't even be the preferred way to integrate with Slack at some point down the road.
from hubot-grafana.
Now that robot.adapterName
is exposed somewhat reliably in updated Hubots, we could conceivably begin trying to roll back in some of the features created in forks like this one.
from hubot-grafana.
That'll be my fork :) Feel free to take from it anything worthwhile.
from hubot-grafana.
#58 appears to have closed this one out to allow uploads over the Slack API.
from hubot-grafana.
Related Issues (20)
- Using with grafana server https self signed HOT 8
- Bar Guage not rendered correctly HOT 2
- When calling multiple graphs, only 2 show up HOT 7
- integrating with flowdock HOT 1
- 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
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.