mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
@@ -59,6 +59,7 @@ type ADCollector struct {
|
||||
LdapSearchesTotal *prometheus.Desc
|
||||
LdapUdpOperationsTotal *prometheus.Desc
|
||||
LdapWritesTotal *prometheus.Desc
|
||||
LdapClientSessions *Prometheus.Desc
|
||||
LinkValuesCleanedTotal *prometheus.Desc
|
||||
PhantomObjectsCleanedTotal *prometheus.Desc
|
||||
PhantomObjectsVisitedTotal *prometheus.Desc
|
||||
@@ -343,6 +344,12 @@ func newADCollector(logger log.Logger) (Collector, error) {
|
||||
nil,
|
||||
nil,
|
||||
),
|
||||
LdapClientSessions: prometheus.NewDesc(
|
||||
prometheus.BuildFQName(Namespace, subsystem, "client_sessions"),
|
||||
"",
|
||||
nil,
|
||||
nil,
|
||||
),
|
||||
LinkValuesCleanedTotal: prometheus.NewDesc(
|
||||
prometheus.BuildFQName(Namespace, subsystem, "link_values_cleaned_total"),
|
||||
"",
|
||||
@@ -1190,6 +1197,11 @@ func (c *ADCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, er
|
||||
prometheus.CounterValue,
|
||||
float64(dst[0].LDAPWritesPersec),
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.LdapClientSessions,
|
||||
prometheus.CounterValue,
|
||||
float64(dst[0].LDAPClientSessions),
|
||||
)
|
||||
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.LinkValuesCleanedTotal,
|
||||
|
||||
Reference in New Issue
Block a user