Make the OpenLDAP Input plugin gather all operations metrics #13158
Labels
feature request
Requests for new plugin and for new features to existing plugins
help wanted
Request for community participation, code, contribution
size/m
2-4 day effort
Use Case
I would like to be able to easily report totals for all LDAP operations that have taken place. This information is available in OpenLDAP's
cn=monitor
backend but the Telegraf OpenLDAP Input plugin does not gather the required metrics.Expected behavior
When using the OpenLDAP input plugin, I would expect the
monitorOpCompleted
andmonitorOpInitiated
values to be gathered fromcn=Operations,cn=monitor
and converted into metrics.Actual behavior
The information on total ops completed and total ops inititiated is not available in the gathered metrics. This information is present in
cn=Operations,cn=monitor
via itsmonitorOpCompleted
andmonitorOpInitiated
attributes. The OpenLdap Input plugin gathers per-operation information from the children ofcn=Operations,cn=monitor
but does not collect the required attributes from the object itself.Additional info
cn=Operations,cn=monitor
has objectClassmonitorContainer
so is currently excluded from the query performed by the Input plugin.Some other monitorContainer objects also provide information directly via their main entry. For example,
cn=Overlays,cn=monitor
reports the available overlays in itsmonitoredInfo
attribute.The text was updated successfully, but these errors were encountered: