graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04784
Re: [Question #246967]: access the whisper database with PHP
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 <question246967@xxxxxxxxxxxxxxxxxxxxx
> 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 : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>
References