INNER CODE UNIT · Python

parse_args

itbench-hub/ITBench · scenarios/sre/tools/kubernetes-topology-monitor/main.py:32

def parse_args():
    """Parse command line arguments."""
    parser = argparse.ArgumentParser(description='Kubernetes Topology Monitor')
    parser.add_argument('--kubeconfig',
                       help='Path to kubeconfig file. If not specified, uses default ~/.kube/config. '
                            'The current-context from the kubeconfig will be used.')
    parser.add_argument('--data-dir', default='./topology_data',
                       help='Directory for storing topology data')
    parser.add_argument('--interval', type=int, default=300,
                       help='Collection interval in seconds')
    parser.add_argument('--max-snapshots', type=int, default=10,
                       help='Maximum number of snapshots to keep')
    parser.add_argument('--log-level', default='INFO',
                       choices=['DEBUG', 'INFO', 'WARNING', 'ERROR'],
                       help='Logging level')
    return parser.parse_args()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…