Search in sources :

Example 1 with MetricsBuilder

use of com.yahoo.vespa.model.admin.monitoring.builder.xml.MetricsBuilder in project vespa by vespa-engine.

the class DomAdminBuilderBase method doBuild.

@Override
protected Admin doBuild(AbstractConfigProducer parent, Element adminElement) {
    Monitoring monitoring = getMonitoring(getChildWithFallback(adminElement, "monitoring", "yamas"));
    Metrics metrics = new MetricsBuilder(applicationType, predefinedMetricSets).buildMetrics(XML.getChild(adminElement, "metrics"));
    Map<String, MetricsConsumer> legacyMetricsConsumers = DomMetricBuilderHelper.buildMetricsConsumers(XML.getChild(adminElement, "metric-consumers"));
    FileDistributionConfigProducer fileDistributionConfigProducer = getFileDistributionConfigProducer(parent);
    Admin admin = new Admin(parent, monitoring, metrics, legacyMetricsConsumers, multitenant, fileDistributionConfigProducer);
    admin.setApplicationType(applicationType);
    doBuildAdmin(admin, adminElement);
    new ModelConfigProvider(admin);
    return admin;
}
Also used : FileDistributionConfigProducer(com.yahoo.vespa.model.filedistribution.FileDistributionConfigProducer) Metrics(com.yahoo.vespa.model.admin.monitoring.builder.Metrics) MetricsConsumer(com.yahoo.vespa.model.admin.monitoring.MetricsConsumer) DefaultMonitoring(com.yahoo.vespa.model.admin.monitoring.DefaultMonitoring) Monitoring(com.yahoo.vespa.model.admin.monitoring.Monitoring) MetricsBuilder(com.yahoo.vespa.model.admin.monitoring.builder.xml.MetricsBuilder)

Aggregations

DefaultMonitoring (com.yahoo.vespa.model.admin.monitoring.DefaultMonitoring)1 MetricsConsumer (com.yahoo.vespa.model.admin.monitoring.MetricsConsumer)1 Monitoring (com.yahoo.vespa.model.admin.monitoring.Monitoring)1 Metrics (com.yahoo.vespa.model.admin.monitoring.builder.Metrics)1 MetricsBuilder (com.yahoo.vespa.model.admin.monitoring.builder.xml.MetricsBuilder)1 FileDistributionConfigProducer (com.yahoo.vespa.model.filedistribution.FileDistributionConfigProducer)1