-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(monitoring): Filter active sessions by session variables #1573
Conversation
A Storybook preview is available for commit a7014db. |
Filter active sessions by tool, tool version, connection method and session type. The value are available as annotations on the Kubernetes service, deployment and pod. Prometheus relabels the annotations to labels. In Grafana, a dropdown menu allows filtering. In addition, the dashboard also shows sessions with failed activity monitoring.
25e082d
to
da1c8c8
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1573 +/- ##
=======================================
Coverage 79.04% 79.05%
=======================================
Files 172 172
Lines 5766 5767 +1
Branches 665 665
=======================================
+ Hits 4558 4559 +1
Misses 1054 1054
Partials 154 154 ☔ View full report in Codecov by Sentry. |
The automatic termination of idle sessions stopped working with #1573. Reason is that the app label was removed from Prometheus. This commit migrates the old app references to the new session_id label.
Unfortunately, #1573 was merged in an incomplete state due to a missing push. This commit adds the missing changes so that the dashboard works as described in the PR.
Unfortunately, #1573 was merged in an incomplete state due to a missing push. This commit adds the missing changes so that the dashboard works as described in the PR.
Filter active sessions by tool, tool version, connection method and session type.
The values are available as annotations on the Kubernetes service, deployment and pod. Prometheus relabels the annotations to labels.
In Grafana, a dropdown menu allows filtering:
In addition, the dashboard also shows sessions with failed activity monitoring.
Also, a small bug that tools couldn't be updated without the ID attribute is fixed.