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.
Updated by laforge about 1 year ago
- Subject changed from Expose DAHDI statistics as rate_ctr to Expose DAHDI statistics to prometheus
- Status changed from New to Stalled
- Assignee set to laforge
- % Done changed from 0 to 50
After my recent
gpsd2prometheus work I thought it might be better to expose the countes directly to prometheus rather than going through the osmo-e1d -> stats -> prometheus route.
Initial WIP (not working yet) is at https://gitea.osmocom.org/laforge/dahdi2prometheus