Search in sources :

Example 6 with MetricManager

use of com.thinkaurelius.titan.util.stats.MetricManager in project titan by thinkaurelius.

the class MetricInstrumentedStore method recordSliceMetrics.

private void recordSliceMetrics(StoreTransaction txh, List<Entry> row) {
    if (!txh.getConfiguration().hasGroupName())
        return;
    String p = txh.getConfiguration().getGroupName();
    final MetricManager mgr = MetricManager.INSTANCE;
    mgr.getCounter(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_COUNT).inc(row.size());
    mgr.getHistogram(p, metricsStoreName, M_GET_SLICE, M_ENTRIES_HISTO).update(row.size());
}
Also used : MetricManager(com.thinkaurelius.titan.util.stats.MetricManager)

Aggregations

MetricManager (com.thinkaurelius.titan.util.stats.MetricManager)6 Timer (com.codahale.metrics.Timer)5 BackendException (com.thinkaurelius.titan.diskstorage.BackendException)2 IOException (java.io.IOException)1