Dear Omar,
On Tue, Jan 22, 2019 at 04:19:50PM +0000, Omar Ramadan wrote:
I've been investigating the availability of KPIs
on the control interfaces. Is there a way to enumerate which metrics and counters exist?
What would be the best way to do so? Thinking it would be a useful to add a list function
to add to the VTY and/or the CTRL interface itself.
I'm sorry that nobody has so far responded to this question. I thought
this had long been taken care of :/
The list of counters of every program can be displayed/exported if you
enter "show asciidoc counters", which is what we use to generate the tables
you find in the manuals of the respective program.
To get some more background about the individual counter types:
* osmo_stat_item
http://ftp.osmocom.org/api/latest/libosmocore/core/html/group__osmo__stat__…
* rate_counter
http://ftp.osmocom.org/api/latest/libosmocore/core/html/group__rate__ctr.ht…
* osmo_counter (old, more or less deprecated)
http://ftp.osmocom.org/api/latest/libosmocore/core/html/structosmo__counter…
* osmo_stats_reporter
http://ftp.osmocom.org/api/latest/libosmocore/core/html/group__stats.html#d…
We have two of those in libosmcoore: One that reports to the logging sub-system,
and another one that reports to statsd / behaves like a statsd exporter
For rate counters, there's an example script on how to export them at
http://git.osmocom.org/python/osmo-python-tests/tree/scripts/osmo_rate_ctr2…
If you have any more specific questions, please follow-up here. Thanks!
Regards,
Harald
--
- Harald Welte <laforge(a)gnumonks.org>
http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)