Expose DAHDI statistics to prometheus
The DAHDI_SPANSTAT ioctl can be used to obtain a number of statistics for a given span (E1/T1 line).
It would be a good idea to implement some library code which would start a timer to periodically poll the DAHDI_SPANSTAT on each of the relevant spans. This could be used by osmo-bsc, osmo-gbproxy or even a stand-alone application to pull all those counters into osmocom rate_ctr infrastructure.
That in turn would allow the counters to be exported alongside all our other counters/stats via the statsd exporter.