mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-03 09:06:35 +00:00
terminal_services: Expose disconnected sessions agains (#2026)
This commit is contained in:
@@ -439,7 +439,7 @@ func (c *Collector) collectWTSSessions(ch chan<- prometheus.Metric) error {
|
|||||||
for _, session := range sessions {
|
for _, session := range sessions {
|
||||||
// only connect metrics for remote named sessions
|
// only connect metrics for remote named sessions
|
||||||
n := strings.ReplaceAll(session.SessionName, "#", " ")
|
n := strings.ReplaceAll(session.SessionName, "#", " ")
|
||||||
if n == "" || n == "Services" {
|
if n == "Services" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user