From f8b8b2c54660cf8da44eaf2ddad86cf704b52abd Mon Sep 17 00:00:00 2001 From: Mark Dordoy Date: Wed, 30 Aug 2023 14:44:53 +0100 Subject: [PATCH] Added docs, updated to gague. Signed-off-by: Mark Dordoy Signed-off-by: Mark Dordoy --- collector/ad.go | 2 +- docs/collector.ad.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/collector/ad.go b/collector/ad.go index c27511fd..d93d598a 100644 --- a/collector/ad.go +++ b/collector/ad.go @@ -1199,7 +1199,7 @@ func (c *ADCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, er ) ch <- prometheus.MustNewConstMetric( c.LdapClientSessions, - prometheus.CounterValue, + prometheus.GaugeValue, float64(dst[0].LDAPClientSessions), ) diff --git a/docs/collector.ad.md b/docs/collector.ad.md index 9ae159b9..c67e61e9 100644 --- a/docs/collector.ad.md +++ b/docs/collector.ad.md @@ -59,6 +59,7 @@ Name | Description | Type | Labels `windows_ad_ldap_searches_total` | _Not yet documented_ | counter | None `windows_ad_ldap_udp_operations_total` | _Not yet documented_ | counter | None `windows_ad_ldap_writes_total` | _Not yet documented_ | counter | None +`windows_ad_ldap_client_sessions` | | _Not yet documented_ | gauge | None `windows_ad_link_values_cleaned_total` | _Not yet documented_ | counter | None `windows_ad_phantom_objects_cleaned_total` | _Not yet documented_ | counter | None `windows_ad_phantom_objects_visited_total` | _Not yet documented_ | counter | None