aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-05-07 16:41:26 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2020-05-09 12:26:06 +0300
commit5e89333b27d1d5d2a60f049fbadb114dd009a74b (patch)
treeb97ac11ab0cfebb9959b16b296a4c076d840bcde /include
parent89aa40df7946a8237287dd7bc0041834f89eb12c (diff)
stats: Add a stats gauge for the MSC links count.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bsc_msc_data.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bsc_msc_data.h b/include/osmocom/bsc/bsc_msc_data.h
index b9df4ba8f..7d797eb9e 100644
--- a/include/osmocom/bsc/bsc_msc_data.h
+++ b/include/osmocom/bsc/bsc_msc_data.h
@@ -56,6 +56,12 @@ enum {
MSC_CON_TYPE_LOCAL,
};
+/* Constants for the MSC stats */
+enum {
+ MSC_STAT_MSC_LINKS_ACTIVE,
+ MSC_STAT_MSC_LINKS_TOTAL,
+};
+
/*! /brief Information on a remote MSC for libbsc.
*/
struct bsc_msc_data {
@@ -99,6 +105,10 @@ struct bsc_msc_data {
char *acc_lst_name;
+ /* structures for keeping rate counters and gauge stats */
+ struct rate_ctr_group *msc_ctrs;
+ struct osmo_stat_item_group *msc_statg;
+
/* Sigtran connection data */
struct {
uint32_t cs7_instance;