input: disable storage_type for metrics plugin
@@ -349,6 +349,11 @@ int flb_input_set_property(struct flb_input_instance *ins,
flb_sds_destroy(tmp);
}
else if (prop_key_check("storage.type", k, len) == 0 && tmp) {
+ /* If the input generate metrics, always use memory storage (for now) */
+ if (ins->event_type == FLB_INPUT_LOGS) {
+ ins->storage_type = CIO_STORE_MEM;
+ }
+ else {
/* Set the storage type */
if (strcasecmp(tmp, "filesystem") == 0) {
ins->storage_type = CIO_STORE_FS;
@@ -360,6 +365,7 @@ int flb_input_set_property(struct flb_input_instance *ins,
flb_sds_destroy(tmp);
return -1;
}
+ }
flb_sds_destroy(tmp);
}
else {
