mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: use common plugin-api interface
This commit is contained in:
1 parent
c61c875bee
commit
70a96aecac
54 files changed
+387
-566
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
collectDefaultMetrics, Counter, Gauge, Metric, Registry,
|
||||
} from 'prom-client';
|
||||
import { db } from 'hydrooj';
|
||||
import * as bus from 'hydrooj/src/service/bus';
|
||||
import * as db from 'hydrooj/src/service/db';
|
||||
|
||||
export const registry = new Registry();
|
||||
registry.setDefaultLabels({ instanceid: process.env.NODE_APP_INSTANCE });
|
||||
|
||||
Reference in new issue
Block a user