exchange: Extend Transport Queue metrics (#1749)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-20 02:05:31 +01:00
committed by GitHub
parent fdee2d8613
commit 85845f4780
12 changed files with 472 additions and 97 deletions

View File

@@ -7,11 +7,14 @@ import (
"fmt"
"github.com/prometheus-community/windows_exporter/internal/perfdata"
"github.com/prometheus-community/windows_exporter/internal/types"
"github.com/prometheus/client_golang/prometheus"
)
func (c *Collector) buildAvailabilityService() error {
counters := []string{}
counters := []string{
requestsPerSec,
}
var err error
@@ -20,6 +23,13 @@ func (c *Collector) buildAvailabilityService() error {
return fmt.Errorf("failed to create MSExchange Availability Service collector: %w", err)
}
c.availabilityRequestsSec = prometheus.NewDesc(
prometheus.BuildFQName(types.Namespace, Name, "avail_service_requests_per_sec"),
"Number of requests serviced per second",
nil,
nil,
)
return nil
}