Closed eric closed 11 years ago
@eric Is this the first step towards refactoring backends?
/cc @roidrage
@eric Never mind, after reading the issue title again I see that's clearly your intent. I assume at some point we'll see a PR for TasseoLibratoDatasource
?
Correct. Once this is merged I'll work on more datasources.
I have currently written a datasource to display realtime stats directly from a process that exposes metric snapshots via JSON.
I forgot to mention that I don't have a graphite install to actually test the graphite part against, though I was able to see that it was getting 404's.
Do you have a public graphite install I could point this at to ensure there aren't any other bugs lurking?
@eric Yeah you can use mine. I've sent you the creds offline.
I've tested everything I can against graphite and it looks good to me.
I've included a Librato Metrics datasource (based on the work of @roidrage in #31 and #58) as TasseoLibratoDatasource
to demonstrate how other datasources would work.
Please let me know if you see any issues that would prevent this from being merged. I would love to get this out there.
I endorse this pull request!
@eric @roidrage Added both of you as collaborators.
@eric Would you mind updating the README to reflect the new stuff (Librato, generic backend support)?
Sounds great! Will do.
On Mon, Aug 26, 2013 at 7:53 AM, Jason Dixon notifications@github.com wrote:
@eric @roidrage Added both of you as collaborators.
@eric Would you mind updating the README to reflect the new stuff (Librato, generic backend support)?
Reply to this email directly or view it on GitHub: https://github.com/obfuscurity/tasseo/pull/64#issuecomment-23267765
This change is intended to provide a way to implement alternate backends for tasseo.
The javascript has been split into 3 classes:
TasseoDashboard
which is responsible for a collection of graphsTasseoGraphiteDatasource
which is responsible for fetching data from graphiteTasseoUi
which is responsible for switching periods as well as day/night modeMuch of the code that was in
j/tasseo.js
that used global variables to configure aspects of operation have been moved toindex.haml
to allow forj/tasseo.js
to be loaded in places that need more control over operation.