From 26dca5630f97e44b50a29064b5a8430563a1e5da Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Fri, 1 Mar 2013 06:59:23 -0800 Subject: [PATCH] QueryServlet: Send alerts with remote address as "peer" instead of "host" "host" is used by the emitter. Both end up being emitted, which can be confusing. --- client/src/main/java/com/metamx/druid/http/QueryServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/com/metamx/druid/http/QueryServlet.java b/client/src/main/java/com/metamx/druid/http/QueryServlet.java index 9a13c50f45c..bed59a8b525 100644 --- a/client/src/main/java/com/metamx/druid/http/QueryServlet.java +++ b/client/src/main/java/com/metamx/druid/http/QueryServlet.java @@ -150,7 +150,7 @@ public class QueryServlet extends HttpServlet ImmutableMap.builder() .put("exception", e.toString()) .put("query", queryString) - .put("host", req.getRemoteAddr()) + .put("peer", req.getRemoteAddr()) .build() ) );