Custom Application Metrics Store
Use the Java API to create your own custom metrics store according to your requirement. When implementing a custom metrics store, you can extend custom metrics classes and override methods that TIBCO BusinessEvents invokes at startup and during run time. After you have created and implemented the custom classes, follow the steps in Creating a Custom Application Metrics Store to add the new application store to the CDD editor in TIBCO BusinessEvents Studio.
Key Classes in the Custom Application Metrics Store API
Few of the key Java classes, interfaces and their key components are mentioned in the following sections. For a complete list of Java classes and interfaces for the custom metrics store, see
To refer to the reference implementations of Elasticsearch as a metric store by using the custom metrics store API's, see reference implementations on GitHub.
MetricsStoreProvider
The MetricsStoreProvider
interface acts as an entry point for the custom metrics store implementation. The custom metrics store needs to implement this interface. Provide the implementation of all the methods in the interface. Specify the fully qualified name for the implementing class parameters of metrics-store.xml
.
MetricsRecordBuilder
The class implementing MetricsStoreProvider
uses MetricsRecordBuilder
to create and build MetricRecord
instances for each entity in a RTC change list that is configured to publish to a target metric store.
MetricRecord
MetricRecord
holds a store-specific metric type and an operation type. The store-specific implementation of MetricsStoreProvider
builds an instance of MetricRecord
using MetricRecordBuilder
and publishes it to the target store.