Search in sources :

Example 1 with DefaultTagFinder

use of org.apache.servicecomb.foundation.metrics.publish.spectator.DefaultTagFinder in project java-chassis by ServiceComb.

the class PublishModelFactory method createMeasurementGroupConfig.

protected MeasurementGroupConfig createMeasurementGroupConfig() {
    MeasurementGroupConfig groupConfig = new MeasurementGroupConfig();
    groupConfig.addGroup(MeterInvocationConst.INVOCATION_NAME, MeterInvocationConst.TAG_ROLE, MeterInvocationConst.TAG_TRANSPORT, MeterInvocationConst.TAG_OPERATION, MeterInvocationConst.TAG_STATUS, MeterInvocationConst.TAG_TYPE, new DefaultTagFinder(MeterInvocationConst.TAG_STAGE, true), MeterInvocationConst.TAG_STATISTIC);
    // os config
    groupConfig.addGroup(OsMeter.OS_NAME, OsMeter.OS_TYPE, new DefaultTagFinder(NetMeter.INTERFACE, true), NetMeter.STATISTIC);
    groupConfig.addGroup(VertxMetersInitializer.VERTX_ENDPOINTS, VertxMetersInitializer.ENDPOINTS_TYPE, EndpointMeter.ADDRESS, EndpointMeter.STATISTIC);
    return groupConfig;
}
Also used : DefaultTagFinder(org.apache.servicecomb.foundation.metrics.publish.spectator.DefaultTagFinder) MeasurementGroupConfig(org.apache.servicecomb.foundation.metrics.publish.spectator.MeasurementGroupConfig)

Aggregations

DefaultTagFinder (org.apache.servicecomb.foundation.metrics.publish.spectator.DefaultTagFinder)1 MeasurementGroupConfig (org.apache.servicecomb.foundation.metrics.publish.spectator.MeasurementGroupConfig)1