mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-02 00:26:35 +00:00
exchange: Extend Transport Queue metrics (#1749)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/prometheus-community/windows_exporter/internal/perfdata"
|
||||
"github.com/prometheus-community/windows_exporter/internal/types"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
@@ -36,6 +37,43 @@ func (c *Collector) buildHTTPProxy() error {
|
||||
return fmt.Errorf("failed to create MSExchange HttpProxy collector: %w", err)
|
||||
}
|
||||
|
||||
c.mailboxServerLocatorAverageLatency = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_mailbox_server_locator_avg_latency_sec"),
|
||||
"Average latency (sec) of MailboxServerLocator web service calls",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
c.averageAuthenticationLatency = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_avg_auth_latency"),
|
||||
"Average time spent authenticating CAS requests over the last 200 samples",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
c.outstandingProxyRequests = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_outstanding_proxy_requests"),
|
||||
"Number of concurrent outstanding proxy requests",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
c.proxyRequestsPerSec = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_requests_total"),
|
||||
"Number of proxy requests processed each second",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
c.averageCASProcessingLatency = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_avg_cas_processing_latency_sec"),
|
||||
"Average latency (sec) of CAS processing time over the last 200 reqs",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
c.mailboxServerProxyFailureRate = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "http_proxy_mailbox_proxy_failure_rate"),
|
||||
"% of failures between this CAS and MBX servers over the last 200 samples",
|
||||
[]string{"name"},
|
||||
nil,
|
||||
)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user