示例#1
0
    def __init__(self, app, name):
        super(DashboardHistory, self).__init__(app, name)
        
        charts = WidgetSet(app, "charts")
        self.add_child(charts)
        
        chart = self.PoolEfficiencyChart(app, "eff", app.model.com_redhat_grid_plumage.OSUtil)
        chart.stats = ["efficiency"]
        chart.max_samples = 250
        chart.duration.param.default = "86400"
        charts.add_child(chart)   

        chart = self.PoolMemoryChart(app, "fmem", app.model.com_redhat_grid_plumage.OSUtil)
        chart.stats = ["usedmem", "freemem"]
        chart.max_samples = 250
        chart.duration.param.default = "86400"
        charts.add_child(chart)
        
        chart = self.PoolCpuChart(app, "fcpu", app.model.com_redhat_grid_plumage.OSUtil)
        chart.stats = [ "usedcpu", "freecpu"]
        chart.max_samples = 250
        chart.duration.param.default = "86400"
        charts.add_child(chart)
        
        chart = self.UserUsageChart(app, "useruse", app.model.com_redhat_grid_plumage.Accountant)
        chart.stats = ["resused"]
        chart.max_samples = 250
        filter = ReportingChart.FilterInput(app, "namefilter", app.model.com_redhat_grid_plumage.Accountant, app.model.com_redhat_grid_plumage.Accountant.user.name, "userc", "Filter user")
        chart.filters.append(filter)
        chart.add_child(filter)
        chart.duration.param.default= "86400"
        charts.add_child(chart)
示例#2
0
    def __init__(self, app, name):
        super(SchedulerPerformance, self).__init__(app, name)

        cls = app.model.com_redhat_grid.Scheduler
        frame = "main.grid.scheduler"

        self.table = MonitorSelfSchedulerTable(app, "current", cls, frame)
        self.add_child(self.table)

        rates = WidgetSet(app, "rate_widgets")
        self.add_child(rates)

        others = WidgetSet(app, "other_widgets")
        self.add_child(others)

        cls = app.model.com_redhat_grid.Scheduler
        columns = (cls.JobsSubmitted, cls.JobSubmissionRate, cls.JobsSubmittedCum)
        stats = DashboardSummaryStats(app, "submitted", cls, columns, "Jobs.Submitted")
        stats.title = "Aggregate job submission stats"
        rates.add_child(stats)

        columns = (cls.JobsStarted, cls.JobStartRate, cls.JobsStartedCum)
        stats = DashboardSummaryStats(app, "started", cls, columns, "Jobs.Started")
        stats.title = "Aggregate job started stats"
        rates.add_child(stats)

        columns = (cls.JobsCompleted, cls.JobCompletionRate, cls.JobsCompletedCum)
        stats = DashboardSummaryStats(app, "completed", cls, columns, "Jobs.Completed")
        stats.title = "Aggregate job completion stats"
        rates.add_child(stats)

        columns = (cls.JobsExited, cls.JobsExitedCum)
        stats = DashboardSummaryStats(app, "exited", cls, columns, "Jobs.Exited")
        stats.title = "Aggregate job exited stats"
        others.add_child(stats)

        columns = (cls.ShadowExceptions, cls.ShadowExceptionsCum)
        stats = DashboardSummaryStats(app, "exceptions", cls, columns, "Jobs.Exceptions")
        stats.title = "Aggregate job shadow exceptions stats"
        others.add_child(stats)

        self.footnote_data = DashboardSumData(app, [cls.WindowedStatWidth.name], cls)