private static WebResponse CallGraphite(GraphiteParams graphiteParams) { var url = MakeGraphiteUrl(graphiteParams); var webRequest = WebRequest.Create(url); return(webRequest.GetResponse()); }
private static string MakeGraphiteUrl(GraphiteParams graphiteParams) { return(string.Format("http://{0}/render?{1}", GraphiteServerName, graphiteParams)); }
public static string GetRawData(GraphiteParams graphiteParams) { var webResponse = CallGraphite(graphiteParams); return(webResponse.ReadBody()); }