Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

scraper: new metric openldap_monitored_object_with_runtime_config #22

Closed
wants to merge 1 commit into from

Conversation

Ma27
Copy link

@Ma27 Ma27 commented Sep 16, 2022

This metric is used to obtain additional metrics exposed by OpenLDAP[1], specifically overlays (cn=Overlays,cn=Monitor) & backends (cn=Backends,cn=Monitor).

This means that Prometheus now provides information about which overlays are enabled (or disabled) in OpenLDAP and which backends (with which config) are active.

Example output (shortened):

openldap_monitored_object_with_runtime_config{dn="cn=Backend 0,cn=Backends,cn=Monitor",info="config"} 1
openldap_monitored_object_with_runtime_config{dn="cn=Overlay 0,cn=Overlays,cn=Monitor",info="glue"} 0
openldap_monitored_object_with_runtime_config{dn="cn=Overlay 1,cn=Overlays,cn=Monitor",info="valsort"} 1

[1] https://www.openldap.org/doc/admin24/monitoringslapd.html

This metric is used to obtain additional metrics exposed by OpenLDAP[1],
specifically `overlays` (`cn=Overlays,cn=Monitor`) & `backends`
(`cn=Backends,cn=Monitor`).

This means that Prometheus now provides information about which overlays
are enabled (or disabled) in OpenLDAP and which backends (with which
config) are active.

Example output (shortened):

```
openldap_monitored_object_with_runtime_config{dn="cn=Backend 0,cn=Backends,cn=Monitor",info="config"} 1
openldap_monitored_object_with_runtime_config{dn="cn=Overlay 0,cn=Overlays,cn=Monitor",info="glue"} 0
openldap_monitored_object_with_runtime_config{dn="cn=Overlay 1,cn=Overlays,cn=Monitor",info="valsort"} 1
```

[1] https://www.openldap.org/doc/admin24/monitoringslapd.html
@Ma27 Ma27 changed the title scraper: neww metric openldap_monitored_object_with_runtime_config scraper: new metric openldap_monitored_object_with_runtime_config Sep 16, 2022
@Ma27
Copy link
Author

Ma27 commented Sep 17, 2022

also, cc @tomcz :)

@tomcz
Copy link
Owner

tomcz commented Dec 12, 2022

Hi, thanks for the PR. I'm confused a little though. How is this a metric rather than an attempt to use prometheus for logging? Metrics change regularly over time, this one will not. Graphing it out will not really be all that useful IMO.

@Ma27
Copy link
Author

Ma27 commented Jan 28, 2023

@tomcz how would you retrieve this via logging? Anyways yes, I'm using this for additional info on my LDAP dashboard (i.e. to give an overview over enabled overlays & backends), so technically it's not a (changing) metric.

@tomcz tomcz closed this Jul 24, 2023
@Ma27 Ma27 deleted the monitored-runtime-config branch July 24, 2023 05:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants