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

SignalR active connections meters metric not working. #451

Open
stewieoO opened this issue Nov 20, 2023 · 0 comments
Open

SignalR active connections meters metric not working. #451

stewieoO opened this issue Nov 20, 2023 · 0 comments

Comments

@stewieoO
Copy link

stewieoO commented Nov 20, 2023

.Net version; 8
prometheus-net version: 8.1.0

When using the default .net meters integration, the signalr.server.active_connections metric has no value.
Reference:

However when listening to the metric directly it shows the correct values.

I have created a sample repo that reproduces the issue.
Simply start the app and it will connect to the signalr hub. In the console you can see the output of the .net metric listener and each time you press f5 it decreases and then increases the count.

However if you navigate to /metrics it shows that the metric exists, but it has no value. I would assume this is an issue with the UpAndDownCounter?

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

No branches or pull requests

1 participant