knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject knox git commit: KNOX-1594 - Upgrade dropwizard metrics to 4.0.3
Date Sat, 10 Nov 2018 14:05:03 GMT
Repository: knox
Updated Branches:
  refs/heads/master d5d95e329 -> fe39d47f6


KNOX-1594 - Upgrade dropwizard metrics to 4.0.3

Signed-off-by: Kevin Risden <krisden@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/fe39d47f
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/fe39d47f
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/fe39d47f

Branch: refs/heads/master
Commit: fe39d47f63077ceb2cf67108528da9d3adaa678f
Parents: d5d95e3
Author: Kevin Risden <krisden@apache.org>
Authored: Fri Nov 9 23:33:29 2018 -0500
Committer: Kevin Risden <krisden@apache.org>
Committed: Fri Nov 9 23:44:30 2018 -0500

----------------------------------------------------------------------
 gateway-server/pom.xml                                        | 4 ++++
 .../services/metrics/impl/reporters/JmxMetricsReporter.java   | 2 +-
 pom.xml                                                       | 7 ++++++-
 3 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/fe39d47f/gateway-server/pom.xml
----------------------------------------------------------------------
diff --git a/gateway-server/pom.xml b/gateway-server/pom.xml
index d868af2..49ee538 100644
--- a/gateway-server/pom.xml
+++ b/gateway-server/pom.xml
@@ -251,6 +251,10 @@
         </dependency>
         <dependency>
             <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-jmx</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
             <artifactId>metrics-servlets</artifactId>
         </dependency>
 

http://git-wip-us.apache.org/repos/asf/knox/blob/fe39d47f/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/reporters/JmxMetricsReporter.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/reporters/JmxMetricsReporter.java
b/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/reporters/JmxMetricsReporter.java
index 6df21e7..11c3ff0 100644
--- a/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/reporters/JmxMetricsReporter.java
+++ b/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/reporters/JmxMetricsReporter.java
@@ -17,8 +17,8 @@
  */
 package org.apache.knox.gateway.services.metrics.impl.reporters;
 
-import com.codahale.metrics.JmxReporter;
 import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.jmx.JmxReporter;
 import org.apache.knox.gateway.config.GatewayConfig;
 import org.apache.knox.gateway.services.metrics.MetricsContext;
 import org.apache.knox.gateway.services.metrics.MetricsReporterException;

http://git-wip-us.apache.org/repos/asf/knox/blob/fe39d47f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e6e9103..3c1ce11 100644
--- a/pom.xml
+++ b/pom.xml
@@ -190,7 +190,7 @@
         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
         <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
         <maven-enforcer-plugin.version>3.0.0-M2</maven-enforcer-plugin.version>
-        <metrics.version>3.1.2</metrics.version>
+        <metrics.version>4.0.3</metrics.version>
         <nimbus-jose-jwt.version>6.0.2</nimbus-jose-jwt.version>
         <okhttp.version>2.7.5</okhttp.version>
         <pac4j.version>2.1.0</pac4j.version>
@@ -1583,6 +1583,11 @@
                 <artifactId>metrics-jetty9</artifactId>
                 <version>${metrics.version}</version>
             </dependency>
+            <dependency>
+                <groupId>io.dropwizard.metrics</groupId>
+                <artifactId>metrics-jmx</artifactId>
+                <version>${metrics.version}</version>
+            </dependency>
 
             <!-- ********** ********** ********** ********** ********** ********** -->
             <!-- ********** Test Dependencies                           ********** -->


Mime
View raw message