Added docs, updated to gague. Signed-off-by: Mark Dordoy <mdordoy@palantir.com>

Signed-off-by: Mark Dordoy <mdordoy@palantir.com>
This commit is contained in:
Mark Dordoy 2023-08-30 14:44:53 +01:00
parent d78230f67b
commit f8b8b2c546
No known key found for this signature in database
GPG Key ID: F88D4B15B0F3A907
2 changed files with 2 additions and 1 deletions

View File

@ -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),
)

View File

@ -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