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
- Host: GitHub
- URL: https://github.com/ebean-orm/ebean-avaje-metrics
- Owner: ebean-orm
- License: apache-2.0
- Created: 2019-04-02T08:58:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T01:16:42.000Z (about 6 years ago)
- Last Synced: 2025-07-14T04:39:41.506Z (6 months ago)
- Language: Java
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"));
```