2 * Copyright (c) 2022 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #ifndef SRC_PLUGINS_PROM_PROM_H_
17 #define SRC_PLUGINS_PROM_PROM_H_
19 #include <vnet/session/session.h>
20 #include <http_static/http_static.h>
22 typedef struct prom_main_
26 hss_register_url_fn register_url;
27 hss_session_send_fn send_data;
28 u32 scraper_node_index;
38 f64 min_scrape_interval;
42 typedef enum prom_process_evt_codes_
45 } prom_process_evt_codes_t;
47 void prom_enable (vlib_main_t *vm);
48 prom_main_t *prom_get_main (void);
50 void prom_stat_patterns_set (u8 **patterns);
51 void prom_stat_patterns_add (u8 **patterns);
52 u8 **prom_stat_patterns_get (void);
53 void prom_stat_patterns_free (void);
55 void prom_stat_name_prefix_set (u8 *prefix);
56 void prom_report_used_only (u8 used_only);
58 #endif /* SRC_PLUGINS_PROM_PROM_H_ */
61 * fd.io coding-style-patch-verification: ON
64 * eval: (c-set-style "gnu")