Skip to content

[Idea] Split core Grafana interactions into its own node module #48

Open
@stephenyeargin

Description

@stephenyeargin

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions