diff --git a/src/routes/graphs.js b/src/routes/graphs.js index 7a3c51e68..0f1136f4e 100644 --- a/src/routes/graphs.js +++ b/src/routes/graphs.js @@ -7,7 +7,8 @@ exports = module.exports = { var middleware = require('../middleware/index.js'), url = require('url'); -var graphiteProxy = middleware.proxy(url.parse('http://127.0.0.1:8417')); +// for testing locally: curl 'http://127.0.0.1:8417/graphite-web/render?format=json&from=-1min&target=absolute(collectd.localhost.du-docker.capacity-usage)' +const graphiteProxy = middleware.proxy(url.parse('http://127.0.0.1:8417')); function getGraphs(req, res, next) { var parsedUrl = url.parse(req.url, true /* parseQueryString */);