You can't with Prometheus + blackbox_exporter. Prometheus stores only numeric (float64) values. Labels are strings, but to work properly it also requires a limited set of distinct label values (to avoid cardinality explosion). Therefore, blackbox_exporter doesn't put arbitrary dynamic text in labels.
You would need to look at a logging system, such as loki, which can store arbitrary text logs. -- 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/b1f02919-2627-42fe-b4b2-0d4452d8a7b9o%40googlegroups.com.

