aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-05-08 01:49:12 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-05-09 12:26:06 +0300
commitdb54283954aca280f9d02b7ad68689aa5d74366f (patch)
tree3757e211887ed07c2cf72999761dc63af2e54aad /include/osmocom/bsc
parent5e89333b27d1d5d2a60f049fbadb114dd009a74b (diff)
stats: report a number of configured BTS to a stats gauge.
It's useful to know how many BTS are actually configured to compare it to a number of connected BTS's. Change-Id: I41cb60f9cb962003227e4a7b63db05acbcdb6f4c
Diffstat (limited to 'include/osmocom/bsc')
-rw-r--r--include/osmocom/bsc/gsm_data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 545019bdc..8173506c1 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -1562,6 +1562,11 @@ static const struct rate_ctr_group_desc bsc_ctrg_desc = {
bsc_ctr_description,
};
+/* Constants for the BSC stats */
+enum {
+ BSC_STAT_NUM_BTS_TOTAL,
+};
+
struct gsm_tz {
int override; /* if 0, use system's time zone instead. */
int hr; /* hour */
@@ -1588,7 +1593,9 @@ struct gsm_network {
struct osmo_timer_list congestion_check_timer;
} hodec2;
+ /* structures for keeping rate counters and gauge stats */
struct rate_ctr_group *bsc_ctrs;
+ struct osmo_stat_item_group *bsc_statg;
unsigned int num_bts;
struct llist_head bts_list;