(version)
return node_system_stats
Get the proper set of os metrics for the specified ES version
Get the proper set of os metrics for the specified ES version
Get the proper set of os metrics for the specified ES version
def node_system_stats_for_version(version):
    """
    Get the proper set of os metrics for the specified ES version
    """
    node_system_stats = dict(NODE_SYSTEM_METRICS)

    if version >= [1, 0, 0]:
        node_system_stats.update(NODE_SYSTEM_METRICS_POST_1)
    if version >= [5, 0, 0]:
        node_system_stats.update(NODE_SYSTEM_METRICS_POST_5)

    return node_system_stats
def node_system_stats_for_version ( version ) : node_system_stats = dict ( NODE_SYSTEM_METRICS ) if version >= [ 1 , 0 , 0 ] : node_system_stats . update ( NODE_SYSTEM_METRICS_POST_1 ) if version >= [ 5 , 0 , 0 ] : node_system_stats . update ( NODE_SYSTEM_METRICS_POST_5 ) return node_system_stats