> I want to compare the value of contextCSN from each ldap server.
If you know a specific value of contextCSN that you're looking for, then
you can put it in a label, and your alerting expression can check for the
absence of a timeseries:
expr: absent(foo{instance="bar",contextCSN="abcd1234"})
Otherwise, the way blackbox_exporter deals with this is to put a *hash* of
the IP address as a numeric metric.
# curl -g
'localhost:9115/probe?module=smtp_starttls&target=aspmx.l.google.com:25'
...
# HELP probe_ip_addr_hash Specifies the hash of IP address. It's useful to
detect if the IP address changes.
# TYPE probe_ip_addr_hash gauge
probe_ip_addr_hash 2.750000148e+09
The hash by itself is not meaningful, but it can be compared with previous
values of the hash to see if the IP address changes. You could do the same
thing for contextCSN.
On Thursday, 28 July 2022 at 04:56:56 UTC+1 [email protected] wrote:
> Hi dears
>
> I want to compare the value of contextCSN from each ldap server.
>
> contextCSN can be obtained with ldapsearch command.
> contextCSN=$(echo $ldap_search_result | grep contextCSN | awk '{ print $2
> }')
>
> May I ask if it is possible to compare the value?
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/40b428c2-8ccd-427a-a859-01022b99b456n%40googlegroups.com.