Package io.debezium.rest
Interface MetricsResource
- All Superinterfaces:
MetricsAttributes
-
Field Summary
FieldsFields inherited from interface io.debezium.rest.model.MetricsAttributes
CONNECTION_ATTRIBUTES, CONNECTOR_ATTRIBUTES -
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(List<String> attributes, ObjectName objectName, String connectorName, MBeanServer mBeanServer) default StringgetAttributeValue(String attribute, ObjectName objectName, String connectorName, MBeanServer mBeanServer) org.apache.kafka.connect.connector.Connectordefault MetricsDescriptorgetConnectorMetrics(String connectorName) getMetrics(String connectorName) default ObjectNamegetObjectName(String connector, String context, String serverName) default ObjectNamegetObjectName(String connector, String context, String serverName, String task) default ObjectNamegetObjectName(String connector, String context, String serverName, String task, String databaseName) default MetricsDescriptorqueryMetrics(Map<String, String> connectorConfig, String connectorName, String connector, String context)
-
Field Details
-
CONNECTOR_METRICS_ENDPOINT
- See Also:
-
mBeanServer
-
-
Method Details
-
getConnector
org.apache.kafka.connect.connector.Connector getConnector() -
getMetrics
MetricsDescriptor getMetrics(String connectorName) throws MalformedObjectNameException, InstanceNotFoundException, IntrospectionException, ReflectionException, AttributeNotFoundException, MBeanException -
getObjectName
default ObjectName getObjectName(String connector, String context, String serverName) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-
getObjectName
default ObjectName getObjectName(String connector, String context, String serverName, String task) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-
getObjectName
default ObjectName getObjectName(String connector, String context, String serverName, String task, String databaseName) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-
getAttributes
default Map<String,String> getAttributes(List<String> attributes, ObjectName objectName, String connectorName, MBeanServer mBeanServer) -
getAttributeValue
default String getAttributeValue(String attribute, ObjectName objectName, String connectorName, MBeanServer mBeanServer) -
queryMetrics
default MetricsDescriptor queryMetrics(Map<String, String> connectorConfig, String connectorName, String connector, String context) throws MalformedObjectNameException- Throws:
MalformedObjectNameException
-
getConnectionAttributes
- Specified by:
getConnectionAttributesin interfaceMetricsAttributes
-
getConnectorAttributes
- Specified by:
getConnectorAttributesin interfaceMetricsAttributes
-
getConnectorMetrics
@GET @Path("/connectors/{connector-name}/metrics") @Produces("application/json") default MetricsDescriptor getConnectorMetrics(@PathParam("connector-name") String connectorName) throws ReflectionException, MalformedObjectNameException, InstanceNotFoundException, IntrospectionException, AttributeNotFoundException, MBeanException
-