Add description, fix typo on type

Signed-off-by: Mark Dordoy <mdordoy@palantir.com>
This commit is contained in:
Mark Dordoy 2023-09-04 09:39:26 +01:00
parent 23e1a86aa7
commit 1d027579d2
No known key found for this signature in database
GPG Key ID: F88D4B15B0F3A907
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +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 LdapClientSessions *prometheus.Desc
LinkValuesCleanedTotal *prometheus.Desc LinkValuesCleanedTotal *prometheus.Desc
PhantomObjectsCleanedTotal *prometheus.Desc PhantomObjectsCleanedTotal *prometheus.Desc
PhantomObjectsVisitedTotal *prometheus.Desc PhantomObjectsVisitedTotal *prometheus.Desc
@ -346,7 +346,7 @@ func newADCollector(logger log.Logger) (Collector, error) {
), ),
LdapClientSessions: prometheus.NewDesc( LdapClientSessions: prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "client_sessions"), 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,
nil, nil,
), ),