committed by
Mark Paluch
parent
6f11c08064
commit
0054952230
@@ -32,7 +32,9 @@ import org.w3c.dom.Element;
|
||||
* @author John Brisbin
|
||||
* @author Oliver Gierke
|
||||
* @author Christoph Strobl
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
public class MongoJmxParser implements BeanDefinitionParser {
|
||||
|
||||
public BeanDefinition parse(Element element, ParserContext parserContext) {
|
||||
|
||||
@@ -30,7 +30,9 @@ import com.mongodb.client.MongoDatabase;
|
||||
* @author Thomas Darimont
|
||||
* @author Mark Paluch
|
||||
* @author Christoph Strobl
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Mongo Admin Operations")
|
||||
public class MongoAdmin implements MongoAdminOperations {
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import org.springframework.jmx.export.annotation.ManagedOperation;
|
||||
* @author Mark Pollack
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
public interface MongoAdminOperations {
|
||||
|
||||
@ManagedOperation
|
||||
|
||||
@@ -31,7 +31,9 @@ import com.mongodb.connection.ServerDescription;
|
||||
* @author Mark Pollack
|
||||
* @author Oliver Gierke
|
||||
* @author Christoph Strobl
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
public abstract class AbstractMonitor {
|
||||
|
||||
private final MongoClient mongoClient;
|
||||
|
||||
@@ -26,7 +26,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for assertions
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Assertion Metrics")
|
||||
public class AssertMetrics extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for Background Flushing
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Background Flushing Metrics")
|
||||
public class BackgroundFlushingMetrics extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -26,7 +26,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for B-tree index counters
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Btree Metrics")
|
||||
public class BtreeIndexCounters extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -26,7 +26,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for Connections
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Connection metrics")
|
||||
public class ConnectionMetrics extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -27,7 +27,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for Global Locks
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Global Lock Metrics")
|
||||
public class GlobalLockMetrics extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -26,7 +26,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for Memory
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Memory Metrics")
|
||||
public class MemoryMetrics extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -27,7 +27,9 @@ import com.mongodb.client.MongoClient;
|
||||
* JMX Metrics for Operation counters
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Operation Counters")
|
||||
public class OperationCounters extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -31,7 +31,9 @@ import com.mongodb.client.MongoClient;
|
||||
* @author Mark Pollack
|
||||
* @author Thomas Darimont
|
||||
* @author Christoph Strobl
|
||||
* @deprecated since 4.5
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@ManagedResource(description = "Server Information")
|
||||
public class ServerInfo extends AbstractMonitor {
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* MongoDB specific JMX monitoring support.
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
@org.springframework.lang.NonNullApi
|
||||
package org.springframework.data.mongodb.monitor;
|
||||
|
||||
|
||||
@@ -22,7 +22,9 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
* @author Oliver Gierke
|
||||
* @deprecated since 4.5.
|
||||
*/
|
||||
@Deprecated(since = "4.5", forRemoval = true)
|
||||
public class JmxServer {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
[[mongo.jmx]]
|
||||
= JMX support
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
JMX support has been deprecated in 4.5 and will be removed in 5.0. +
|
||||
We recommend switching to Spring Boot https://docs.spring.io/spring-boot/reference/actuator/endpoints.html[Actuator Endpoints] and expose those over JMX if needed.
|
||||
====
|
||||
|
||||
The JMX support for MongoDB exposes the results of running the 'serverStatus' command on the admin database for a single MongoDB server instance. It also exposes an administrative MBean, `MongoAdmin`, that lets you perform administrative operations, such as dropping or creating a database. The JMX features build upon the JMX feature set available in the Spring Framework. See link:{springDocsUrl}/integration.html#jmx[here] for more details.
|
||||
|
||||
[[mongodb:jmx-configuration]]
|
||||
|
||||
Reference in New Issue
Block a user