Exemplo n.º 1
0
        private static WebResponse CallGraphite(GraphiteParams graphiteParams)
        {
            var url = MakeGraphiteUrl(graphiteParams);

            var webRequest = WebRequest.Create(url);

            return(webRequest.GetResponse());
        }
Exemplo n.º 2
0
 private static string MakeGraphiteUrl(GraphiteParams graphiteParams)
 {
     return(string.Format("http://{0}/render?{1}", GraphiteServerName, graphiteParams));
 }
Exemplo n.º 3
0
        public static string GetRawData(GraphiteParams graphiteParams)
        {
            var webResponse = CallGraphite(graphiteParams);

            return(webResponse.ReadBody());
        }