Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to write capture stats to a file. #155

Merged
merged 2 commits into from
Dec 6, 2016
Merged

Commits on Dec 6, 2016

  1. Add ability to write capture stats to a file.

    With -s, periodically fetch capture stats from the inspector and write
    them to the provided file.
    
    Separate class StatsFileWriter handles the details. It does rely on a
    timer + SIGALRM handler so you can only practically create a single
    object, but it does keep the code/state separate.
    
    The output format has a sample number, the set of current stats, a
    delta with the difference from the prior sample, and the percentage of
    events dropped during that sample.
    mstemm committed Dec 6, 2016
    Configuration menu
    Copy the full SHA
    1dbfe3e View commit details
    Browse the repository at this point in the history
  2. Add ability to write "extra" stuff to stats file.

    When run via scripts like run_performance_tests.sh, it's useful to
    include extra info like the test being run and the specific program
    variant to the stats file. So support that via the
    environment. Environment keys starting with FALCO_STATS_EXTRA_XXX will
    have the XXX and environment value added to the stats file.
    
    It's undocumented as I doubt other programs will need this functionality
    and it keeps the docs simpler.
    mstemm committed Dec 6, 2016
    Configuration menu
    Copy the full SHA
    ca1d263 View commit details
    Browse the repository at this point in the history