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