access the whisper database with PHP

Asked by manga

Hey All,

My company want to use Graphite (cool product!) But is there a way to make custom queries through PHP?

We want to make our own monitor tool that use the Graphite whisper.

Best Regards,

Mangas

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brian Hatfield (bmhatfield) said :
#1

A common approach is to use the API rather than attempt to interact with
whisper directly. One possibly unanticipated issue with attempting to use
Whisper directly is that carbon-cache will often have metrics held in
memory for a while before batching them up and writing them out to disk,
making the files on disk not contain the metrics you were hoping to
interact until potentially long after you wanted to interact them (eg, a
monitor tool wants the most-up-to-date information).

Here's a stripped down version of graphite-web that you can run that only
has the API: https://github.com/brutasse/graphite-api

Finally, if you want to alert on streams of metrics in real time, I might
advocate using a tool like Riemann (and funneling the metrics to Graphite)
- http://riemann.io/ (This is totally orthogonal to your original question,
but I think worth including)

On Mon, Apr 14, 2014 at 4:16 AM, manga <<email address hidden>
> wrote:

> New question #246967 on Graphite:
> https://answers.launchpad.net/graphite/+question/246967
>
> Hey All,
>
> My company want to use Graphite (cool product!) But is there a way to make
> custom queries through PHP?
>
> We want to make our own monitor tool that use the Graphite whisper.
>
> Best Regards,
>
> Mangas
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask manga for more information if necessary.

To post a message you must log in.