diff options
author | Florin Coras <fcoras@cisco.com> | 2022-02-03 15:17:21 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-02-03 23:19:57 +0000 |
commit | 1a7344f7325e6fd37b89de60347b1618ae8e20eb (patch) | |
tree | 8895955c3bafe1246a1610cdd71d90d0dde7c47b /src/plugins/prom/prom.h | |
parent | e38babcdf9d735d15a90d91f225d115bf9e97433 (diff) |
prom: add option to set stat name prefix
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I8b40d4e935c9280ff89a3d0f8b30bd7beac1e08a
Diffstat (limited to 'src/plugins/prom/prom.h')
-rw-r--r-- | src/plugins/prom/prom.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/prom/prom.h b/src/plugins/prom/prom.h index baacc28a26a..898e4c209d1 100644 --- a/src/plugins/prom/prom.h +++ b/src/plugins/prom/prom.h @@ -27,11 +27,16 @@ typedef struct prom_main_ hss_session_send_fn send_data; u32 scraper_node_index; u8 is_enabled; + u8 *name_scratch_pad; + vlib_main_t *vm; + /* + * Configs + */ u8 **stats_patterns; + u8 *stat_name_prefix; f64 min_scrape_interval; u8 used_only; - vlib_main_t *vm; } prom_main_t; typedef enum prom_process_evt_codes_ @@ -47,6 +52,9 @@ void prom_stat_patterns_add (u8 **patterns); u8 **prom_stat_patterns_get (void); void prom_stat_patterns_free (void); +void prom_stat_name_prefix_set (u8 *prefix); +void prom_report_used_only (u8 used_only); + #endif /* SRC_PLUGINS_PROM_PROM_H_ */ /* |