mirror of
https://github.com/remnawave/backend.git
synced 2026-05-14 04:46:49 +00:00
- Introduced a new endpoint to retrieve nodes metrics from the Prometheus metrics endpoint. - Added the `parse-prometheus-text-format` package for parsing metrics data. - Updated the SystemService to include logic for fetching and processing node metrics. - Enhanced the SystemController to expose the new nodes metrics API.
23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
// import { PrismaClient } from '@prisma/client';
|
|
// import { Kysely } from 'kysely';
|
|
|
|
// import { DB } from 'prisma/generated/types';
|
|
|
|
// declare module '@prisma/client' {
|
|
// interface PrismaClient {
|
|
// $kysely: Kysely<DB>;
|
|
// }
|
|
// }
|
|
|
|
// declare module '@nestjs-cls/transactional-adapter-prisma' {
|
|
// interface TransactionalAdapterPrisma {
|
|
// tx: {
|
|
// $kysely: Kysely<DB>;
|
|
// } & PrismaClient;
|
|
// }
|
|
// }
|
|
|
|
declare module 'parse-prometheus-text-format' {
|
|
function parsePrometheusTextFormat(text: string): any;
|
|
export = parsePrometheusTextFormat;
|
|
}
|