@graphql-mesh/plugin-prometheus
Version:
11 lines (10 loc) • 484 B
TypeScript
import { type Plugin as YogaPlugin } from 'graphql-yoga';
import { Registry } from 'prom-client';
import { MeshServePlugin } from '@graphql-mesh/serve-runtime';
import { ImportFn, Logger, MeshPlugin, YamlConfig } from '@graphql-mesh/types';
export default function useMeshPrometheus(pluginOptions: YamlConfig.PrometheusConfig & {
logger?: Logger;
baseDir?: string;
importFn?: ImportFn;
registry?: Registry | string;
}): MeshPlugin<any> & YogaPlugin & MeshServePlugin;