public class MetricManager extends Object implements Closeable
Modifier and Type | Method and Description |
---|---|
static MetricManager |
acquire() |
void |
close() |
MetricRegistrator |
createRegistrator(String prefix) |
MetricRegistrator |
createRegistrator(String prefix,
Map<String,String> tags) |
MetricRegistrator |
createRegistrator(String prefix,
Map<String,String> tags,
Map<String,DynamicMetricTag> dynamicTags) |
static String |
getConfigFilePath() |
String |
getSeparator() |
Map<String,Object> |
getSnapshotsByPrefix(Collection<String> prefixes) |
List<MetricRegistrator> |
registerProcessMetrics(Map<String,String> tags) |
static void |
registerTaskManagerMetrics(MetricRegistrator registrator,
TaskManager taskManager) |
static void |
registerThreadPoolMetrics(MetricRegistrator registrator,
DynamicThreadPoolExecutor dynamicThreadPoolExecutor) |
static void |
reloadIfStarted() |
public static MetricManager acquire()
public static void reloadIfStarted()
public List<MetricRegistrator> registerProcessMetrics(Map<String,String> tags)
public static String getConfigFilePath()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public MetricRegistrator createRegistrator(String prefix)
public MetricRegistrator createRegistrator(String prefix, Map<String,String> tags)
public MetricRegistrator createRegistrator(String prefix, Map<String,String> tags, Map<String,DynamicMetricTag> dynamicTags)
public String getSeparator()
public Map<String,Object> getSnapshotsByPrefix(Collection<String> prefixes)
public static void registerThreadPoolMetrics(MetricRegistrator registrator, DynamicThreadPoolExecutor dynamicThreadPoolExecutor)
public static void registerTaskManagerMetrics(MetricRegistrator registrator, TaskManager taskManager)
Copyright © GigaSpaces.