From 1d027579d2a70d2cbfec6b07c02f5a954a913ef4 Mon Sep 17 00:00:00 2001 From: Mark Dordoy Date: Mon, 4 Sep 2023 09:39:26 +0100 Subject: [PATCH] Add description, fix typo on type Signed-off-by: Mark Dordoy --- collector/ad.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/ad.go b/collector/ad.go index d93d598a..3269492f 100644 --- a/collector/ad.go +++ b/collector/ad.go @@ -59,7 +59,7 @@ type ADCollector struct { LdapSearchesTotal *prometheus.Desc LdapUdpOperationsTotal *prometheus.Desc LdapWritesTotal *prometheus.Desc - LdapClientSessions *Prometheus.Desc + LdapClientSessions *prometheus.Desc LinkValuesCleanedTotal *prometheus.Desc PhantomObjectsCleanedTotal *prometheus.Desc PhantomObjectsVisitedTotal *prometheus.Desc @@ -346,7 +346,7 @@ func newADCollector(logger log.Logger) (Collector, error) { ), LdapClientSessions: prometheus.NewDesc( prometheus.BuildFQName(Namespace, subsystem, "client_sessions"), - "", + "This is the number of sessions opened by LDAP clients at the time the data is taken. This is helpful in determining LDAP client activity and if the DC is able to handle the load. Of course, spikes during normal periods of authentication — such as first thing in the morning — are not necessarily a problem, but long sustained periods of high values indicate an overworked DC.", nil, nil, ),