Search in sources :

Example 11 with RemoteSenderService

use of org.apache.skywalking.apm.collector.remote.service.RemoteSenderService in project incubator-skywalking by apache.

the class InstanceMetricAlarmGraph method create.

public void create() {
    RemoteSenderService remoteSenderService = moduleManager.find(RemoteModule.NAME).getService(RemoteSenderService.class);
    Graph<InstanceMetric> graph = GraphManager.INSTANCE.createIfAbsent(AlarmGraphIdDefine.INSTANCE_METRIC_ALARM_GRAPH_ID, InstanceMetric.class);
    graph.addNode(new InstanceMetricAlarmAssertWorker.Factory(moduleManager).create(workerCreateListener)).addNext(new InstanceMetricAlarmRemoteWorker.Factory(moduleManager, remoteSenderService, AlarmGraphIdDefine.INSTANCE_METRIC_ALARM_GRAPH_ID).create(workerCreateListener)).addNext(new InstanceMetricAlarmPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    graph.toFinder().findNode(AlarmWorkerIdDefine.INSTANCE_METRIC_ALARM_REMOTE_WORKER_ID, InstanceAlarm.class).addNext(new InstanceMetricAlarmToListNodeProcessor()).addNext(new InstanceMetricAlarmListPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    link(graph);
}
Also used : RemoteSenderService(org.apache.skywalking.apm.collector.remote.service.RemoteSenderService) InstanceMetric(org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric)

Example 12 with RemoteSenderService

use of org.apache.skywalking.apm.collector.remote.service.RemoteSenderService in project incubator-skywalking by apache.

the class InstanceMetricGraph method create.

public void create() {
    RemoteSenderService remoteSenderService = moduleManager.find(RemoteModule.NAME).getService(RemoteSenderService.class);
    Graph<InstanceReferenceMetric> graph = GraphManager.INSTANCE.createIfAbsent(MetricGraphIdDefine.INSTANCE_METRIC_GRAPH_ID, InstanceReferenceMetric.class);
    Node<InstanceMetric, InstanceMetric> remoteNode = graph.addNode(new InstanceMinuteMetricAggregationWorker.Factory(moduleManager).create(workerCreateListener)).addNext(new InstanceMinuteMetricRemoteWorker.Factory(moduleManager, remoteSenderService, MetricGraphIdDefine.INSTANCE_METRIC_GRAPH_ID).create(workerCreateListener));
    remoteNode.addNext(new InstanceMinuteMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new InstanceHourMetricTransformNode()).addNext(new InstanceHourMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new InstanceDayMetricTransformNode()).addNext(new InstanceDayMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new InstanceMonthMetricTransformNode()).addNext(new InstanceMonthMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    link(graph);
}
Also used : RemoteSenderService(org.apache.skywalking.apm.collector.remote.service.RemoteSenderService) InstanceReferenceMetric(org.apache.skywalking.apm.collector.storage.table.instance.InstanceReferenceMetric) InstanceMetric(org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric)

Example 13 with RemoteSenderService

use of org.apache.skywalking.apm.collector.remote.service.RemoteSenderService in project incubator-skywalking by apache.

the class ApplicationReferenceMetricAlarmGraph method create.

public void create() {
    RemoteSenderService remoteSenderService = moduleManager.find(RemoteModule.NAME).getService(RemoteSenderService.class);
    Graph<ApplicationReferenceMetric> graph = GraphManager.INSTANCE.createIfAbsent(AlarmGraphIdDefine.APPLICATION_REFERENCE_METRIC_ALARM_GRAPH_ID, ApplicationReferenceMetric.class);
    graph.addNode(new ApplicationReferenceMetricAlarmAssertWorker.Factory(moduleManager).create(workerCreateListener)).addNext(new ApplicationReferenceMetricAlarmRemoteWorker.Factory(moduleManager, remoteSenderService, AlarmGraphIdDefine.APPLICATION_REFERENCE_METRIC_ALARM_GRAPH_ID).create(workerCreateListener)).addNext(new ApplicationReferenceMetricAlarmPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    graph.toFinder().findNode(AlarmWorkerIdDefine.APPLICATION_REFERENCE_METRIC_ALARM_REMOTE_WORKER_ID, ApplicationReferenceAlarm.class).addNext(new ApplicationReferenceMetricAlarmToListNodeProcessor()).addNext(new ApplicationReferenceMetricAlarmListPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    link(graph);
}
Also used : RemoteSenderService(org.apache.skywalking.apm.collector.remote.service.RemoteSenderService) ApplicationReferenceMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)

Example 14 with RemoteSenderService

use of org.apache.skywalking.apm.collector.remote.service.RemoteSenderService in project incubator-skywalking by apache.

the class ApplicationMetricGraph method create.

public void create() {
    RemoteSenderService remoteSenderService = moduleManager.find(RemoteModule.NAME).getService(RemoteSenderService.class);
    Graph<ApplicationReferenceMetric> graph = GraphManager.INSTANCE.createIfAbsent(MetricGraphIdDefine.APPLICATION_METRIC_GRAPH_ID, ApplicationReferenceMetric.class);
    Node<ApplicationMetric, ApplicationMetric> remoteNode = graph.addNode(new ApplicationMinuteMetricAggregationWorker.Factory(moduleManager).create(workerCreateListener)).addNext(new ApplicationMinuteMetricRemoteWorker.Factory(moduleManager, remoteSenderService, MetricGraphIdDefine.APPLICATION_METRIC_GRAPH_ID).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMinuteMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationHourMetricTransformNode()).addNext(new ApplicationHourMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationDayMetricTransformNode()).addNext(new ApplicationDayMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMonthMetricTransformNode()).addNext(new ApplicationMonthMetricPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    link(graph);
}
Also used : RemoteSenderService(org.apache.skywalking.apm.collector.remote.service.RemoteSenderService) ApplicationReferenceMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric) ApplicationMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationMetric)

Example 15 with RemoteSenderService

use of org.apache.skywalking.apm.collector.remote.service.RemoteSenderService in project incubator-skywalking by apache.

the class ApplicationMappingGraph method create.

public void create() {
    RemoteSenderService remoteSenderService = moduleManager.find(RemoteModule.NAME).getService(RemoteSenderService.class);
    Node<ApplicationMapping, ApplicationMapping> remoteNode = GraphManager.INSTANCE.createIfAbsent(MetricGraphIdDefine.APPLICATION_MAPPING_GRAPH_ID, ApplicationMapping.class).addNode(new ApplicationMappingMinuteAggregationWorker.Factory(moduleManager).create(workerCreateListener)).addNext(new ApplicationMappingMinuteRemoteWorker.Factory(moduleManager, remoteSenderService, MetricGraphIdDefine.APPLICATION_MAPPING_GRAPH_ID).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMappingMinutePersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMappingHourTransformNode()).addNext(new ApplicationMappingHourPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMappingDayTransformNode()).addNext(new ApplicationMappingDayPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
    remoteNode.addNext(new ApplicationMappingMonthTransformNode()).addNext(new ApplicationMappingMonthPersistenceWorker.Factory(moduleManager).create(workerCreateListener));
}
Also used : RemoteSenderService(org.apache.skywalking.apm.collector.remote.service.RemoteSenderService) ApplicationMapping(org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)

Aggregations

RemoteSenderService (org.apache.skywalking.apm.collector.remote.service.RemoteSenderService)19 InstanceReferenceMetric (org.apache.skywalking.apm.collector.storage.table.instance.InstanceReferenceMetric)4 ServiceReferenceMetric (org.apache.skywalking.apm.collector.storage.table.service.ServiceReferenceMetric)4 ApplicationReferenceMetric (org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)3 ApplicationMetric (org.apache.skywalking.apm.collector.storage.table.application.ApplicationMetric)2 InstanceMetric (org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric)2 ServiceMetric (org.apache.skywalking.apm.collector.storage.table.service.ServiceMetric)2 ApplicationComponent (org.apache.skywalking.apm.collector.storage.table.application.ApplicationComponent)1 ApplicationMapping (org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping)1 InstanceMapping (org.apache.skywalking.apm.collector.storage.table.instance.InstanceMapping)1