[ixpmanager] How to Link to Aggregate Graph?

Barry O'Donovan barry.odonovan at inex.ie
Wed Sep 13 21:27:34 IST 2017



Kyle Spencer wrote:
> However, when attempting to copy the URL from the graph shown on the
> public statistics page, I get a large string that appears to be a
> hash:
> 
> data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAACHBAMAAAFlPob0AAAAHlBMVEX19fXCwsJkZGT/AAAAzAAAAAAAZgDvn0//AP8AAP/G7XGyAAAACXBIWXMA
> <etc>
> 
> This is not usable. What can I do?

Not a hash, an embedded PNG image. Mostly a work around for MRTG Log
which is nearly deprecated thankfully.

I thought I had Grapher's API documented but maybe I don't...

Here's an example of what you want from INEX's production system:

Overall IXP graph JSON:

https://www.inex.ie/ixp/grapher/ixp?id=1&type=json

(note that we install IXP Manager under https://www.inex.ie/ixp so -
from your IXP Manager base, the URL you need to add on starts with
/grapher/...)

For the PNG, you can now use:

https://www.inex.ie/ixp/grapher/ixp?id=1&type=png

and you can change defaults such as &period=week

IXP Manager creates the 'graph box' with the stats right now but if
you're use RRD they'll be embedded in the image once I tidy up one
commit (will do this week).

Note that for public stats @ INEX, we just link directly to:

https://www.inex.ie/ixp/public-statistics/public

 - Barry


 - Barry


More information about the ixpmanager mailing list