gNMIc currently exports metrics for targets (gnmic_target_up) and subscriptions, but not for target loaders (Consul, http, file, etc). If Consul is unreachable, gNMIc logs errors, but there’s no Prometheus metric to alert on. There are situations where something like Consul itself can be healthy & online but unreachable due to network partitions, and it would be great to be able to trigger alerts whenever gNMIc is unable discover targets.
I want to propose we add loader-level metrics such as:
gnmic_loader_up{loader="consul"} — 1 if loader healthy, 0 if not.
gnmic_loader_errors_total{loader="consul"} — counter of loader failures.
I'd be happy to submit a PR implement this if you think it's a good idea