terminal_services: Expose disconnected sessions agains (#2026) (#2039)

This commit is contained in:
Jan-Otto Kröpke
2025-05-17 14:14:54 +02:00
committed by GitHub
parent 62b796e6f6
commit 109f537c14

View File

@@ -437,7 +437,7 @@ func (c *Collector) collectWTSSessions(ch chan<- prometheus.Metric) error {
for _, session := range sessions {
// only connect metrics for remote named sessions
n := strings.ReplaceAll(session.SessionName, "#", " ")
if n == "" || n == "Services" {
if n == "Services" {
continue
}