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 metrics json #761

Open
wants to merge 82 commits into
base: master
Choose a base branch
from
Open

Commits on Jan 30, 2022

  1. Add first implementation of monitor-metrics-json"

    Aaron Whitehouse committed Jan 30, 2022
    Configuration menu
    Copy the full SHA
    570f27a View commit details
    Browse the repository at this point in the history
  2. Encode the JSON in monitor_metrics_json, add

    schema_version and put snapshot info within "snapshot_info" in the JSON
    Aaron Whitehouse committed Jan 30, 2022
    Configuration menu
    Copy the full SHA
    3765e31 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. Add --monitor-metrics-json to the --help output

    Aaron Whitehouse committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    5baaa51 View commit details
    Browse the repository at this point in the history
  2. Capture the snapshot_health_issues metric

    (the $errorlevel for each path/type combination)
    Aaron Whitehouse committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    4935208 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Add comment on $snapshot_health_issues

    Aaron Whitehouse committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    6c4b1e9 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2022

  1. Add newest_snapshot_ctime_seconds to JSON output

    Aaron Whitehouse committed Feb 18, 2022
    Configuration menu
    Copy the full SHA
    b9897d4 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2022

  1. Add tests README with instructions on testing

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    e963dd2 View commit details
    Browse the repository at this point in the history
  2. Add new monitoring test scaffolding.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    cdbc191 View commit details
    Browse the repository at this point in the history
  3. Add monitoring test framework

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    e26671c View commit details
    Browse the repository at this point in the history
  4. Add python test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    372eadc View commit details
    Browse the repository at this point in the history
  5. Test failure.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    b3ee98a View commit details
    Browse the repository at this point in the history
  6. Test output with no zpool.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    3655c02 View commit details
    Browse the repository at this point in the history
  7. add subprocess import

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    1bdb607 View commit details
    Browse the repository at this point in the history
  8. Fix --monitor-snapshots command in test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    123e35e View commit details
    Browse the repository at this point in the history
  9. Fix path to sanoid snapshot cache file

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    c21d8d0 View commit details
    Browse the repository at this point in the history
  10. Remove check on test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    8bb8d38 View commit details
    Browse the repository at this point in the history
  11. Fix test output.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    c488df5 View commit details
    Browse the repository at this point in the history
  12. add second section

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    f939851 View commit details
    Browse the repository at this point in the history
  13. Add 2nd section to sanoid.conf for monitoring test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    26777c2 View commit details
    Browse the repository at this point in the history
  14. Test return code for monitoring no pool

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    501c992 View commit details
    Browse the repository at this point in the history
  15. Fix return code of first test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    c8f2b3f View commit details
    Browse the repository at this point in the history
  16. Create zpool, test.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    e556495 View commit details
    Browse the repository at this point in the history
  17. add test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    37bce97 View commit details
    Browse the repository at this point in the history
  18. Fixes to zpool creation test.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    890c785 View commit details
    Browse the repository at this point in the history
  19. debugging

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    3e9730d View commit details
    Browse the repository at this point in the history
  20. Fix pool_target issues in test.

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    8571510 View commit details
    Browse the repository at this point in the history
  21. Clean up monitoring tests zpool creation/teardown

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    3364805 View commit details
    Browse the repository at this point in the history
  22. Comment out zpool export, as now in python

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    49589e2 View commit details
    Browse the repository at this point in the history
  23. Delete temp disk images as part of teardown

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    867b755 View commit details
    Browse the repository at this point in the history
  24. Test monitoring after sanoid cron

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    02aedfa View commit details
    Browse the repository at this point in the history
  25. Fix monitoring test after sanoid run

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    d0f89c9 View commit details
    Browse the repository at this point in the history
  26. Add test for monitoring immediately after running

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    b992beb View commit details
    Browse the repository at this point in the history
  27. Clear snapshot cache before each test

    Aaron Whitehouse committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    6710b2d View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. First time-based test (one warning)

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    0b7c05f View commit details
    Browse the repository at this point in the history
  2. Add more info for debugging

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    2561a5e View commit details
    Browse the repository at this point in the history
  3. Add print for debugging

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    a2fc4b3 View commit details
    Browse the repository at this point in the history
  4. Test warning string

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    f870d27 View commit details
    Browse the repository at this point in the history
  5. Fix test for one monitoring warning.

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    d9da30d View commit details
    Browse the repository at this point in the history
  6. Use sanoid --force-update instead of

    manually deleting snapshot cache
    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    4c9a9e2 View commit details
    Browse the repository at this point in the history
  7. Add initial test for two critical monitoring

    errors
    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    adddd20 View commit details
    Browse the repository at this point in the history
  8. Adjust time slightly

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    7462a1a View commit details
    Browse the repository at this point in the history
  9. Add test details for two criticals

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    a7fd743 View commit details
    Browse the repository at this point in the history
  10. Fix test_two_criticals output test

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    f0fd435 View commit details
    Browse the repository at this point in the history
  11. Fix test_two_criticals returncode

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    38ed37c View commit details
    Browse the repository at this point in the history
  12. Start test_two_warnings_daily

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    ae4c0c6 View commit details
    Browse the repository at this point in the history
  13. Fix test_two_warnings_daily text test

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    c28f1c3 View commit details
    Browse the repository at this point in the history
  14. Fix return code

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    8152952 View commit details
    Browse the repository at this point in the history
  15. Fix test_two_warnings

    Aaron Whitehouse committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    c7e57b7 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2022

  1. change name of test_two_warnings_daily

    to be more accurate
    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    5015aec View commit details
    Browse the repository at this point in the history
  2. Create a new set of tests for --monitor-snapshots

    these create pools in a number of states and check the output text
    and return code
    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    cdbe07e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'add_vm_tests' of https://github.com/Hooloovoo/sanoid in…

    …to add_vm_tests
    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    3a4e043 View commit details
    Browse the repository at this point in the history
  4. Delete redundant set of tests from rename/merge

    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    9cc6b7f View commit details
    Browse the repository at this point in the history
  5. Ready to merge

    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    9759fa4 View commit details
    Browse the repository at this point in the history
  6. Add newline at end of sanoid.conf

    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    b17a0fe View commit details
    Browse the repository at this point in the history
  7. Add newline

    Aaron Whitehouse committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    fec7cf9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. Merge branch 'add_vm_tests' into add_metrics_json

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    7e9d4e4 View commit details
    Browse the repository at this point in the history
  2. Temporarily make the test suite only run

    monitor snapshots
    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    6a9fadd View commit details
    Browse the repository at this point in the history
  3. Add libjson-perl as a dependency

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    c0f61f2 View commit details
    Browse the repository at this point in the history
  4. Start with broken test to get JSON output

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    1f20a6b View commit details
    Browse the repository at this point in the history
  5. Add tests for JSON sanoid-test-1

    deliberately failing
    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    6db15f7 View commit details
    Browse the repository at this point in the history
  6. Fix crit_age_seconds

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    3a5c62c View commit details
    Browse the repository at this point in the history
  7. Fix has_snapshots test

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    934030d View commit details
    Browse the repository at this point in the history
  8. Fix monitor_dont_crit and monitor_dont_warn tests

    Aaron Whitehouse committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    65859b5 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2022

  1. Make monitor_dont_crit and warn convert to numbers

    in the JSON output
    Aaron Whitehouse committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    1b635c3 View commit details
    Browse the repository at this point in the history
  2. Fix snapshot_health_issues

    Aaron Whitehouse committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    7c854b4 View commit details
    Browse the repository at this point in the history
  3. Fix warn_age_seconds

    Aaron Whitehouse committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    ddd9c21 View commit details
    Browse the repository at this point in the history
  4. Fix daily test

    Aaron Whitehouse committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    b39bc7c View commit details
    Browse the repository at this point in the history
  5. Fix monthly tests

    Aaron Whitehouse committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    be52e5e View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2022

  1. Fix spacing

    Aaron Whitehouse committed Apr 2, 2022
    Configuration menu
    Copy the full SHA
    e2c39cf View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. Add test_no_zpool json tests and add

    "overall_snapshot_health_issues" metric
    Aaron Whitehouse committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    628d902 View commit details
    Browse the repository at this point in the history
  2. Use int to ensure JSON values dumped as numbers

    Add and reorganise JSON tests
    Aaron Whitehouse committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    861e86b View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2022

  1. Add sanoid-test-2 info to

    test_immediately_after_running_sanoid
    Aaron Whitehouse committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    c82d908 View commit details
    Browse the repository at this point in the history
  2. Add sanoid-test-2 to

    test_immediately_after_running_sanoid
    Aaron Whitehouse committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    dac3bff View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Start JSON tests for test_one_warning_hourly

    Aaron Whitehouse committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    bf6b733 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Added monitoring tests to test_one_warning_hourly

    Aaron Whitehouse committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    e6d6a8b View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Added test_two_criticals_hourly JSON tests

    Aaron Whitehouse committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    e7ac2ad View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2022

  1. All test_monitoring tests added and passing

    Aaron Whitehouse committed Aug 4, 2022
    Configuration menu
    Copy the full SHA
    bd17421 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2022

  1. Re-enable all tests. All pass.

    Aaron Whitehouse committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    e8fdb8a View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Configuration menu
    Copy the full SHA
    a7438a5 View commit details
    Browse the repository at this point in the history
  2. Add mkdir /etc/sanoid to the test runner

    and tidied up the test README
    Aaron Whitehouse committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    8001870 View commit details
    Browse the repository at this point in the history
  3. Added instructions for creating a test VM with LXD

    Aaron Whitehouse committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    c103b0f View commit details
    Browse the repository at this point in the history
  4. Updated comment in run.sh

    Aaron Whitehouse committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    3b81748 View commit details
    Browse the repository at this point in the history