diff --git a/README.md b/README.md index 538ab2c89..e556e5822 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Wavefront proxy version 10.11 and later use a version of Log4j that addresses th [Wavefront](https://docs.wavefront.com/) is a high-performance streaming analytics platform for monitoring and optimizing your environment and applications. -The [Wavefront Proxy](https://docs.wavefront.com/proxies.html) is a light-weight Java application that you send your metrics, histograms, and trace data to. It handles batching and transmission of your data to the Wavefront service in a secure, fast, and reliable manner. +The [Wavefront Proxy](https://docs.wavefront.com/proxies.html) is a light-weight Java application that you send your metrics, histograms, logs, and trace data to. It handles batching and transmission of your data to the Wavefront service in a secure, fast, and reliable manner. ## Requirements diff --git a/docker/README.md b/docker/README.md index 21b58bcab..068d35c3e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,35 +1,47 @@ +## Build + + docker build -t wavefront-proxy . + +## run + The Proxy will accept Wavefront formatted message on port 2878 (additional listeners can be enabled in WAVEFRONT_PROXY_ARGS, see below). Just run this docker image with the following environment variables defined, e.g. - docker build -t wavefront-proxy . +#### WF Token + docker run \ -e WAVEFRONT_URL=https://you.wavefront.com/api \ -e WAVEFRONT_TOKEN= \ -p 2878:2878 \ wavefront-proxy - docker build -t wavefront-proxy . +#### CSP App ID and App Secret + docker run -d \ -e WAVEFRONT_URL=https://you.wavefront.com/api/ \ - -e CSP_APP_ID \ - -e CSP_APP_SECRET \ + -e CSP_APP_ID= \ + -e CSP_APP_SECRET= \ -p 2878:2878 \ wavefront-proxy - docker build -t wavefront-proxy . +#### CSP App ID, App Secret and ORG ID + docker run -d \ -e WAVEFRONT_URL=https://you.wavefront.com/api/ \ - -e CSP_APP_ID \ - -e CSP_APP_SECRET \ - -e CSP_ORG_ID \ + -e CSP_APP_ID= \ + -e CSP_APP_SECRET= \ + -e CSP_ORG_ID= \ -p 2878:2878 \ wavefront-proxy - docker build -t wavefront-proxy . +#### CSP Api Token + docker run -d \ -e WAVEFRONT_URL=https://you.wavefront.com/api/ \ -e CSP_API_TOKEN= \ -p 2878:2878 \ wavefront-proxy +## Configuration + All properties that exist in [wavefront.conf](https://github.com/wavefrontHQ/java/blob/master/pkg/etc/wavefront/wavefront-proxy/wavefront.conf.default) can be customized by passing their name as long form arguments within your docker run command in the WAVEFRONT_PROXY_ARGS environment variable. For example, add `-e WAVEFRONT_PROXY_ARGS="--pushRateLimit 1000"` to your docker run command to specify a [rate limit](https://github.com/wavefrontHQ/java/blob/master/pkg/etc/wavefront/wavefront-proxy/wavefront.conf.default#L62) of 1000 pps for the proxy. diff --git a/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java b/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java index 6bb9ea733..e26d92b0f 100644 --- a/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java +++ b/proxy/src/main/java/com/wavefront/agent/channel/ChannelUtils.java @@ -171,13 +171,11 @@ public static HttpResponse makeResponse( public static String errorMessageWithRootCause(@Nonnull final Throwable e) { StringBuilder msg = new StringBuilder(); final Throwable rootCause = Throwables.getRootCause(e); - msg.append("reason: \""); + msg.append("reason: "); msg.append(e.getMessage()); - msg.append("\""); if (rootCause != null && rootCause != e && rootCause.getMessage() != null) { - msg.append(", root cause: \""); + msg.append(", root cause: "); msg.append(rootCause.getMessage()); - msg.append("\""); } return msg.toString(); }