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;
}
Aggregations