Skip to content
Heinrich Hartmann edited this page Oct 17, 2017 · 5 revisions

Graphite Image

docker run -d --name graphite -p3000:3000 -p2003:2003 -p443:443 -p8125:8125 raintank/graphite-stack

Graphite Fetcher

import requests
from requests.compat import quote

def graphite_fetch(host, target, start, until):
    """
    Simple get taget from locally hosted graphite
    """
    url = 'https://%s/render/?target=%s&from=%s&until=%s&format=json' % (
        host,
        quote(target),
        quote(start),
        quote(until)
    )
    response = requests.get(url, verify=False)
    return response.json()

graphite_fetch("18.194.115.67","carbon.agents.b4b64b3c566e-a.*","12:00_20171017", "13:00_20171017")

Generate HTML Report

jupyter-nbconvert --execute --to pdf S1\ -\ Importing\ Data.ipynb
Clone this wiki locally