Ejemplo n.º 1
0
def draw_all_graphs(metricsDescriptionFile, testcaseEnv, clusterConfig):
    # go through each role and plot graphs for the role's metrics
    roles = set(map(lambda config: config['role'], clusterConfig))
    for role in roles:
        dashboards = get_dashboard_definition(metricsDescriptionFile, role)
        entities = kafka_system_test_utils.get_entities_for_role(clusterConfig, role)
        for dashboard in dashboards:
            graphs = dashboard['graphs']
            # draw each graph for all entities
            draw_graph_for_role(graphs, entities, role, testcaseEnv)
Ejemplo n.º 2
0
def draw_all_graphs(metricsDescriptionFile, testcaseEnv, clusterConfig):
    # go through each role and plot graphs for the role's metrics
    roles = set(map(lambda config: config['role'], clusterConfig))
    for role in roles:
        dashboards = get_dashboard_definition(metricsDescriptionFile, role)
        entities = kafka_system_test_utils.get_entities_for_role(clusterConfig, role)
        for dashboard in dashboards:
            graphs = dashboard['graphs']
            # draw each graph for all entities
            draw_graph_for_role(graphs, entities, role, testcaseEnv)
Ejemplo n.º 3
0
def build_all_dashboards(metricsDefinitionFile, testcaseDashboardsDir, clusterConfig):
    metricsHtmlFile = testcaseDashboardsDir + "/metrics.html"
    centralDashboard = PyH('Kafka Metrics Dashboard')
    centralDashboard << h1('Kafka Metrics Dashboard', cl='center')
    roles = set(map(lambda config: config['role'], clusterConfig))
    for role in roles:
        entities = kafka_system_test_utils.get_entities_for_role(clusterConfig, role)
        dashboardPagePath = build_dashboard_for_role(metricsDefinitionFile, role, 
                                                     entities, testcaseDashboardsDir)
        centralDashboard << a(role, href = dashboardPagePath)
        centralDashboard << br()
            
    centralDashboard.printOut(metricsHtmlFile)
Ejemplo n.º 4
0
def build_all_dashboards(metricsDefinitionFile, testcaseDashboardsDir, clusterConfig):
    metricsHtmlFile = testcaseDashboardsDir + "/metrics.html"
    centralDashboard = PyH('Kafka Metrics Dashboard')
    centralDashboard << h1('Kafka Metrics Dashboard', cl='center')
    roles = set(map(lambda config: config['role'], clusterConfig))
    for role in roles:
        entities = kafka_system_test_utils.get_entities_for_role(clusterConfig, role)
        dashboardPagePath = build_dashboard_for_role(metricsDefinitionFile, role, 
                                                     entities, testcaseDashboardsDir)
        centralDashboard << a(role, href = dashboardPagePath)
        centralDashboard << br()
            
    centralDashboard.printOut(metricsHtmlFile)