Open
Description
In its present state, this Hubot package builds all of the requests to a Grafana instance and handles the interaction with the user. Ideally, these should be two separate modules.
node-grafana
(new)
Low-level HTTP(S) request library that handles authentication and common queries against the API (retrieve a list of dashboards, grab a specific dashboard's data, build the URLs for images, etc.).
grafana-hubot
(this package)
A much lighter-weight wrapper that uses a configured instance of node-grafana
to query the API. It also would handle the various adapters for uploading images, such as S3, Slack, HipChat, etc.
This should cut down the total lines of code in this package while giving Hubot and other node developers an alternative to relying on the conventions of this package.
/cc #47
Activity