diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-03 16:21:40 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-22 01:47:55 +0000 |
commit | 59b90bc44401dc0e4c5004b0fec677106bce8871 (patch) | |
tree | a7c48fe591311124b5f8b528520c2a4040906e65 /include | |
parent | fed2a488b94fc24df4f5548f98a71bb98920a66a (diff) |
stats/vty: Add selective show stats command
Currently there is only the 'show stats' command which shows all
counter and stat_item values. This can lead to many lines of output
if there are per-subscriber rate counters.
The new command added by this commit allows it to only show groups of
a certain level (class_id), similar to the 'level' configuration
command for stats reporter.
The new command is
show stats level (global|peer|subscriber)
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/vty/misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h index f3b46dbd..97ad4a52 100644 --- a/include/osmocom/vty/misc.h +++ b/include/osmocom/vty/misc.h @@ -17,6 +17,8 @@ void vty_out_stat_item_group(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg); void vty_out_statistics_full(struct vty *vty, const char *prefix); +void vty_out_statistics_partial(struct vty *vty, const char *prefix, + int max_level); int osmo_vty_write_config_file(const char *filename); int osmo_vty_save_config_file(void); |