diff --git a/check_nodes.py b/check_nodes.py index 9aeb3b6..a0770bb 100644 --- a/check_nodes.py +++ b/check_nodes.py @@ -367,6 +367,7 @@ def main(): nodes_with_issues = set(results.node) print("Total nodes with issues:", len(nodes_with_issues)) print("Total unique data series:", len(df)) + print("Total number of issues:", len(results)) if __name__ == "__main__": diff --git a/report_results.py b/report_results.py index 9109bfd..ae28dfe 100644 --- a/report_results.py +++ b/report_results.py @@ -114,6 +114,7 @@ def main(): parser.add_argument("--keep-last", default=100, type=int, help="number of old files to keep") parser.add_argument("-p", "--path", default=".", help="path to store files") parser.add_argument("-c", "--checker", default="check_nodes.py", help="path to checker script") + parser.add_argument("--window", default="5m", help="data window duration for check") args = parser.parse_args() SLACK_TOKEN = os.environ["SLACK_TOKEN"] @@ -125,7 +126,7 @@ def main(): "python3", args.checker, "--window", - "2m", + args.window, # "--ssh", # TODO provide ssh access "--uploads", "-o",