parent
b802994809
commit
905717977e
|
@ -56,7 +56,7 @@ public class JsonMetricsReporter extends ScheduledReporter {
|
||||||
SortedMap<String, Timer> stringTimerSortedMap)
|
SortedMap<String, Timer> stringTimerSortedMap)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
logger.info("Reporting metrics...");
|
logger.debug("Reporting metrics...");
|
||||||
URL url = new URL("https", sunnylabsHost, 443, "/report/metrics?t=" + table + "&h=" + host);
|
URL url = new URL("https", sunnylabsHost, 443, "/report/metrics?t=" + table + "&h=" + host);
|
||||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ public class JsonMetricsReporter extends ScheduledReporter {
|
||||||
|
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
|
|
||||||
logger.info("Metrics server response: " + connection.getResponseCode());
|
logger.debug("Metrics server response: " + connection.getResponseCode());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.warn("Error sending metrics", e);
|
logger.warn("Error sending metrics", e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue