An open API service indexing awesome lists of open source software.

https://github.com/ebean-orm/ebean-avaje-metrics

An adapter such that the metrics from Ebean can be supplied and reported via Avaje metrics
https://github.com/ebean-orm/ebean-avaje-metrics

Last synced: 3 months ago
JSON representation

An adapter such that the metrics from Ebean can be supplied and reported via Avaje metrics

Awesome Lists containing this project

README

          

# ebean-avaje-metrics
An adapter such that the metrics from Ebean can be supplied and reported via Avaje metrics

## Example use

```java
Database db = DB.getDefault();
MetricManager.addSupplier(new DbMetricSupplier(db));
```

## Example - register multiple databases

```java

Database db1 = DB.getDefault();
Database db2 = DB.byName("central");

// metric names prefixed with "db"
MetricManager.addSupplier(new DbMetricSupplier(db1));

// metric names prefixed with "centraldb"
MetricManager.addSupplier(new DbMetricSupplier(db2, "centraldb"));

```