For example
contextCSN=$(echo $ldap_search_result | grep contextCSN | awk '{ print $2
}')
define a metrics:
contextCSN_metrics{instance="ldap01"} $contextCSN
in alert rules:
expr: contextCSN_metrics == ?
On Thursday, July 28, 2022 at 11:56:56 AM UTC+8 nina guo 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/1a3fa49b-da78-4388-aab8-a5bdcd039012n%40googlegroups.com.