Search in sources :

Example 6 with ApplicationReferenceMetric

use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric in project incubator-skywalking by apache.

the class AbstractApplicationReferenceMetricH2PersistenceDAO method h2DataToStreamData.

@Override
protected final ApplicationReferenceMetric h2DataToStreamData(ResultSet resultSet) throws SQLException {
    ApplicationReferenceMetric applicationReferenceMetric = new ApplicationReferenceMetric();
    applicationReferenceMetric.setId(resultSet.getString(ApplicationReferenceMetricTable.COLUMN_ID));
    applicationReferenceMetric.setMetricId(resultSet.getString(ApplicationReferenceMetricTable.COLUMN_METRIC_ID));
    applicationReferenceMetric.setFrontApplicationId(resultSet.getInt(ApplicationReferenceMetricTable.COLUMN_FRONT_APPLICATION_ID));
    applicationReferenceMetric.setBehindApplicationId(resultSet.getInt(ApplicationReferenceMetricTable.COLUMN_BEHIND_APPLICATION_ID));
    applicationReferenceMetric.setSourceValue(resultSet.getInt(ApplicationReferenceMetricTable.COLUMN_SOURCE_VALUE));
    applicationReferenceMetric.setTransactionCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TRANSACTION_CALLS));
    applicationReferenceMetric.setTransactionErrorCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TRANSACTION_ERROR_CALLS));
    applicationReferenceMetric.setTransactionDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TRANSACTION_DURATION_SUM));
    applicationReferenceMetric.setTransactionErrorDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TRANSACTION_ERROR_DURATION_SUM));
    applicationReferenceMetric.setTransactionAverageDuration(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TRANSACTION_AVERAGE_DURATION));
    applicationReferenceMetric.setBusinessTransactionCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_BUSINESS_TRANSACTION_CALLS));
    applicationReferenceMetric.setBusinessTransactionErrorCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_BUSINESS_TRANSACTION_ERROR_CALLS));
    applicationReferenceMetric.setBusinessTransactionDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_BUSINESS_TRANSACTION_DURATION_SUM));
    applicationReferenceMetric.setBusinessTransactionErrorDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_BUSINESS_TRANSACTION_ERROR_DURATION_SUM));
    applicationReferenceMetric.setBusinessTransactionAverageDuration(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_BUSINESS_TRANSACTION_AVERAGE_DURATION));
    applicationReferenceMetric.setMqTransactionCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_MQ_TRANSACTION_CALLS));
    applicationReferenceMetric.setMqTransactionErrorCalls(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_MQ_TRANSACTION_ERROR_CALLS));
    applicationReferenceMetric.setMqTransactionDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_MQ_TRANSACTION_DURATION_SUM));
    applicationReferenceMetric.setMqTransactionErrorDurationSum(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_MQ_TRANSACTION_ERROR_DURATION_SUM));
    applicationReferenceMetric.setMqTransactionAverageDuration(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_MQ_TRANSACTION_AVERAGE_DURATION));
    applicationReferenceMetric.setSatisfiedCount(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_SATISFIED_COUNT));
    applicationReferenceMetric.setToleratingCount(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TOLERATING_COUNT));
    applicationReferenceMetric.setFrustratedCount(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_FRUSTRATED_COUNT));
    applicationReferenceMetric.setTimeBucket(resultSet.getLong(ApplicationReferenceMetricTable.COLUMN_TIME_BUCKET));
    return applicationReferenceMetric;
}
Also used : ApplicationReferenceMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)

Example 7 with ApplicationReferenceMetric

use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric 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 8 with ApplicationReferenceMetric

use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric 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 9 with ApplicationReferenceMetric

use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric in project incubator-skywalking by apache.

the class ApplicationReferenceDayMetricTransformNode method process.

@Override
public void process(ApplicationReferenceMetric applicationReferenceMetric, Next<ApplicationReferenceMetric> next) {
    long timeBucket = TimeBucketUtils.INSTANCE.minuteToDay(applicationReferenceMetric.getTimeBucket());
    ApplicationReferenceMetric newApplicationReferenceMetric = ApplicationReferenceMetricCopy.copy(applicationReferenceMetric);
    newApplicationReferenceMetric.setId(String.valueOf(timeBucket) + Const.ID_SPLIT + applicationReferenceMetric.getMetricId());
    newApplicationReferenceMetric.setTimeBucket(timeBucket);
    next.execute(newApplicationReferenceMetric);
}
Also used : ApplicationReferenceMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)

Example 10 with ApplicationReferenceMetric

use of org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric in project incubator-skywalking by apache.

the class ApplicationReferenceMetricCopy method copy.

public static ApplicationReferenceMetric copy(ApplicationReferenceMetric applicationReferenceMetric) {
    ApplicationReferenceMetric newApplicationReferenceMetric = new ApplicationReferenceMetric();
    newApplicationReferenceMetric.setId(applicationReferenceMetric.getId());
    newApplicationReferenceMetric.setMetricId(applicationReferenceMetric.getMetricId());
    newApplicationReferenceMetric.setSourceValue(applicationReferenceMetric.getSourceValue());
    newApplicationReferenceMetric.setFrontApplicationId(applicationReferenceMetric.getFrontApplicationId());
    newApplicationReferenceMetric.setBehindApplicationId(applicationReferenceMetric.getBehindApplicationId());
    newApplicationReferenceMetric.setTransactionCalls(applicationReferenceMetric.getTransactionCalls());
    newApplicationReferenceMetric.setTransactionDurationSum(applicationReferenceMetric.getTransactionDurationSum());
    newApplicationReferenceMetric.setTransactionErrorCalls(applicationReferenceMetric.getTransactionErrorCalls());
    newApplicationReferenceMetric.setTransactionErrorDurationSum(applicationReferenceMetric.getTransactionErrorDurationSum());
    newApplicationReferenceMetric.setBusinessTransactionCalls(applicationReferenceMetric.getBusinessTransactionCalls());
    newApplicationReferenceMetric.setBusinessTransactionDurationSum(applicationReferenceMetric.getBusinessTransactionDurationSum());
    newApplicationReferenceMetric.setBusinessTransactionErrorCalls(applicationReferenceMetric.getBusinessTransactionErrorCalls());
    newApplicationReferenceMetric.setBusinessTransactionErrorDurationSum(applicationReferenceMetric.getBusinessTransactionErrorDurationSum());
    newApplicationReferenceMetric.setMqTransactionCalls(applicationReferenceMetric.getMqTransactionCalls());
    newApplicationReferenceMetric.setMqTransactionDurationSum(applicationReferenceMetric.getMqTransactionDurationSum());
    newApplicationReferenceMetric.setMqTransactionErrorCalls(applicationReferenceMetric.getMqTransactionErrorCalls());
    newApplicationReferenceMetric.setMqTransactionErrorDurationSum(applicationReferenceMetric.getMqTransactionErrorDurationSum());
    newApplicationReferenceMetric.setSatisfiedCount(applicationReferenceMetric.getSatisfiedCount());
    newApplicationReferenceMetric.setToleratingCount(applicationReferenceMetric.getToleratingCount());
    newApplicationReferenceMetric.setFrustratedCount(applicationReferenceMetric.getFrustratedCount());
    newApplicationReferenceMetric.setTimeBucket(applicationReferenceMetric.getTimeBucket());
    return newApplicationReferenceMetric;
}
Also used : ApplicationReferenceMetric(org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)

Aggregations

ApplicationReferenceMetric (org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric)10 RemoteSenderService (org.apache.skywalking.apm.collector.remote.service.RemoteSenderService)3 ApdexThresholdUtils (org.apache.skywalking.apm.collector.core.util.ApdexThresholdUtils)1 ApplicationMetric (org.apache.skywalking.apm.collector.storage.table.application.ApplicationMetric)1 InstanceReferenceMetric (org.apache.skywalking.apm.collector.storage.table.instance.InstanceReferenceMetric)1