diff --git a/userspace/falco/app/actions/load_config.cpp b/userspace/falco/app/actions/load_config.cpp index b2701009..b5730b80 100644 --- a/userspace/falco/app/actions/load_config.cpp +++ b/userspace/falco/app/actions/load_config.cpp @@ -25,20 +25,7 @@ static void apply_deprecated_options( const falco::app::options& opts, const std::shared_ptr& cfg) { - if (!opts.stats_output_file.empty() || !opts.stats_interval.empty()) - { - falco_logger::log(LOG_WARNING, "Options '-s' and '--stats-interval' will be deprecated in the future, metrics must be configured through config file"); - if (!opts.stats_output_file.empty()) - { - cfg->m_metrics_enabled = true; - cfg->m_metrics_output_file = opts.stats_output_file; - if (!opts.stats_interval.empty()) - { - cfg->m_metrics_interval_str = opts.stats_interval; - cfg->m_metrics_interval = falco::utils::parse_prometheus_interval(cfg->m_metrics_interval_str); - } - } - } + // Keep for future use cases. } falco::app::run_result falco::app::actions::load_config(falco::app::state& s) diff --git a/userspace/falco/app/options.cpp b/userspace/falco/app/options.cpp index 3b4c2b58..80d74e4a 100644 --- a/userspace/falco/app/options.cpp +++ b/userspace/falco/app/options.cpp @@ -219,8 +219,6 @@ void options::define(cxxopts::Options& opts) ("p,print", "Print (or replace) additional information in rule's output.\nUse -pc or -pcontainer to append container details.\nUse -pk or -pkubernetes to add both container and Kubernetes details.\nIf using gVisor, choose -pcg or -pkg variants (or -pcontainer-gvisor and -pkubernetes-gvisor, respectively).\nIf a rule's output contains %container.info, it will be replaced with the corresponding details. Otherwise, these details will be directly appended to the rule's output.\nAlternatively, use -p \"...\" for a custom format. In this case, the given content will be appended to the rule's output without any replacement.", cxxopts::value(print_additional), "") ("P,pidfile", "When run as a daemon, write pid to specified file", cxxopts::value(pidfilename)->default_value("/var/run/falco.pid"), "") ("r", "Rules file/directory (defaults to value set in configuration file, or /etc/falco_rules.yaml). This option can be passed multiple times to read from multiple files/directories.", cxxopts::value>(), "") - ("s", "If specified, append statistics related to Falco's reading/processing of events to this file (only useful in live mode).", cxxopts::value(stats_output_file), "") - ("stats-interval", "When using -s , write statistics every ms. This uses signals, and has a minimum threshold of 100 ms. Defaults to 5000 (5 seconds).", cxxopts::value(stats_interval), "") ("S,snaplen", "Capture the first bytes of each I/O buffer. By default, the first 80 bytes are captured. Use this option with caution, it can have a strong performance impact.", cxxopts::value(snaplen)->default_value("0"), "") ("support", "Print support information including version, rules files used, etc. and exit.", cxxopts::value(print_support)->default_value("false")) ("T", "Disable any rules with a tag=. This option can be passed multiple times. Can not be mized with -t", cxxopts::value>(), "")