-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Metric "server_interactive_sessions_total" missing IoT sessions #3755
Comments
In addition (while validating this report), I noticed that the No sessions connected:
Start a session (to the non-IoT node), then check again:
Disconnect session and check again:
The value for sessions shouldn't be able to go below zero. |
Best: 2 |
`session.Close` can get called multiple times, from different deferred cleanups. The associated metric decrement should only happen on the first call, to map 1:1 with increments. Without this, we could end up with negative `server_interactive_sessions_total` counts. Fixes #3755
Figured out the issue @webvictim was having: #4228 As for IoT nodes - the sessions counter works as expected on the node itself. @travelton, which teleport process were you watching those metrics on? Node or proxy? |
Pretty sure @travelton filed this on my behalf. We were watching metrics on the proxy. Would love to see an aggregate counter maintained by the proxy, as the nodes themselves are often deployed in hard-to-reach network segments, making scraping them directly more difficult than scraping the proxy. |
@zmb3 added |
Description
What happened:
The metrics
server_interactive_sessions_total
, exported via--diag-addr
, is not counting interactive sessions for IoT sessions.What you expected to happen:
IoT sessions should be counted in server_interactive_sessions_total metric.
How to reproduce it (as minimally and precisely as possible):
--diag-addr=127.0.0.1:3000
on Teleport Cluster.curl http://127.0.0.1:3000/metrics | grep server_interactive_sessions_total
.Environment
teleport version
): 4.2.9The text was updated successfully, but these errors were encountered: