Comments (3)
Can you please provide a minimal reproduction of the issue?
from nestjs-prometheus.
I'm using in a private repo. But basically I use the exact same code on this tutorial and i cannot run my application. But this is the error:
import { Module } from '@nestjs/common';
import { PrometheusModule } from '@willsoto/nestjs-prometheus';
import createMetricsPlugin from 'apollo-metrics';
import { plugin as apolloTracingPlugin } from 'apollo-tracing';
import { register } from 'prom-client';
export const TRACING_PLUGIN_KEY = 'TRACING_PLUGIN_KEY';
export const METRICS_PLUGIN_KEY = 'METRICS_PLUGIN_KEY';
@Module({
imports: [PrometheusModule.register()],
providers: [
{
provide: TRACING_PLUGIN_KEY,
useValue: apolloTracingPlugin(),
},
{
provide: METRICS_PLUGIN_KEY,
useValue: createMetricsPlugin(register),
},
],
exports: [TRACING_PLUGIN_KEY, METRICS_PLUGIN_KEY],
})
export class PromModule {}
from nestjs-prometheus.
This stack trace has nothing to do with this module.
My suggestion would be to check how you are importing the function in question. You are using a default import but maybe you should be using a named import or import * as createMetricsPlugin
. I would check the docs for that module to see how they import it.
from nestjs-prometheus.
Related Issues (20)
- Add support for Pushgateway HOT 1
- Use Gauge with collect HOT 4
- how to use with prometheus-gc-stats HOT 1
- how do you inject Pushgateway? HOT 5
- Invalid number of arguments, expected 1..2 HOT 1
- Very long NodeJS event loop lag HOT 2
- NestJS Monorepo app returns 404 error HOT 1
- TypeScript error "Unable to resolve signature of parameter decorator when called as an expression" HOT 13
- Issues adding to grafana HOT 3
- http_request_xxx HOT 1
- add support for nestjs v10 HOT 1
- How to inject app/custom dependencies into PrometheusModule HOT 6
- I can't push with pushgateway HOT 15
- Make it possible to inject a dependency into collect function HOT 3
- Metrics not being computed when the application is forked into a child process HOT 5
- Persist Data HOT 1
- Nest can't resolve dependencies of metric providers HOT 12
- [HMR] Error: A metric with the name X has already been registered. HOT 1
- Easy way to exclude PrometheusController from global auth guard? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-prometheus.