Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KafkaJSConsumerPrometheusExporter.consumerFetchDuration initialisation is missing #91

Closed
mivanilov opened this issue Apr 4, 2024 · 2 comments · Fixed by #92
Closed

Comments

@mivanilov
Copy link
Contributor

Getting error after kafkajs consumer run starts:
{"level":"ERROR","timestamp":"2024-04-04T13:09:03.572Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSNonRetriableError: Cannot read properties of undefined (reading 'observe')"...

Version 3.1.0

Bug on line https://github.com/christiangalsterer/kafkajs-prometheus-exporter/blob/main/src/kafkaJSConsumerPrometheusExporter.ts#L107
consumerFetchLatency initialised second time instead of consumerFetchDuration

@christiangalsterer
Copy link
Owner

@mivanilov : A new release 3.1.1 is now available on NPM.

@mivanilov
Copy link
Contributor Author

@christiangalsterer thanks, it works now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants