Create custom metrics
Add pre-computed metrics to custom processors that drive advanced analytic use cases
Development steps
Explaining each step
Step 1: Register query
UUID registerMetricQuery(String metricFamily, String[] metrics, String predicate)
throws SQLExceptionAttribute
Description
Example
Example
// Get an instance of the interface
MetricQueryInterface metricQueryInterface = MetricQueryInterface.getInstance();
// Register the query
var uuidQueryToken = metricQueryInterface.registerMetricQuery(
"nasdaq_metrics",
new String[]{"avg_bid_min","avg_bid_avg","avg_bid_max"},
"WHERE symbol=?"
);Step 2 Get metrics
Attribute
Description
Example
Example
Last updated