File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,11 @@ struct flb_config {
148148 char * storage_path ;
149149 void * storage_input_plugin ;
150150 char * storage_sync ; /* sync mode */
151+ int storage_metrics ; /* enable/disable storage metrics */
151152 int storage_checksum ; /* checksum enabled */
152153 int storage_max_chunks_up ; /* max number of chunks 'up' in memory */
153154 char * storage_bl_mem_limit ; /* storage backlog memory limit */
155+ struct flb_storage_metrics * storage_metrics_ctx ; /* storage metrics context */
154156
155157 /* Embedded SQL Database support (SQLite3) */
156158#ifdef FLB_HAVE_SQLDB
@@ -237,6 +239,7 @@ enum conf_type {
237239/* Storage / Chunk I/O */
238240#define FLB_CONF_STORAGE_PATH "storage.path"
239241#define FLB_CONF_STORAGE_SYNC "storage.sync"
242+ #define FLB_CONF_STORAGE_METRICS "storage.metrics"
240243#define FLB_CONF_STORAGE_CHECKSUM "storage.checksum"
241244#define FLB_CONF_STORAGE_BL_MEM_LIMIT "storage.backlog.mem_limit"
242245#define FLB_CONF_STORAGE_MAX_CHUNKS_UP "storage.max_chunks_up"
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ struct flb_service_config service_configs[] = {
9696 {FLB_CONF_STORAGE_SYNC ,
9797 FLB_CONF_TYPE_STR ,
9898 offsetof(struct flb_config , storage_sync )},
99+ {FLB_CONF_STORAGE_METRICS ,
100+ FLB_CONF_TYPE_BOOL ,
101+ offsetof(struct flb_config , storage_metrics )},
99102 {FLB_CONF_STORAGE_CHECKSUM ,
100103 FLB_CONF_TYPE_BOOL ,
101104 offsetof(struct flb_config , storage_checksum )},
You can’t perform that action at this time.
0 commit comments