public class PrometheusMetricsTrackerFactory extends Object implements MetricsTrackerFactory
HikariConfig config = new HikariConfig();
config.setMetricsTrackerFactory(new PrometheusMetricsTrackerFactory());
Constructor and Description |
---|
PrometheusMetricsTrackerFactory() |
Modifier and Type | Method and Description |
---|---|
IMetricsTracker |
create(String poolName,
PoolStats poolStats)
Create an instance of an IMetricsTracker.
|
public IMetricsTracker create(String poolName, PoolStats poolStats)
MetricsTrackerFactory
create
in interface MetricsTrackerFactory
poolName
- the name of the poolpoolStats
- a PoolStats instance to useCopyright © 2017 Zaxxer.com. All rights reserved.