In addition to other prometheus exporters (node_exporter and frr_exporter https://vyos.dev/T973) blackbox exporter is a useful tool to get metrics for connectivity.
It allows for example to ping remote hosts, doing dns requests and so on for Prometheus to gather metrics and create alerts if latency grows too big or no response is received.