use of io.confluent.ksql.util.KsqlConstants.RoutingNodeType in project ksql by confluentinc.
the class PullQueryExecutorMetrics method configureSensorMap.
private Map<MetricsKey, Sensor> configureSensorMap(final String sensorBaseName, final MetricsAdder metricsAdder) {
final ImmutableMap.Builder<MetricsKey, Sensor> builder = ImmutableMap.builder();
for (final QuerySourceType sourceType : QuerySourceType.values()) {
for (final PullPhysicalPlanType planType : PullPhysicalPlanType.values()) {
for (final RoutingNodeType routingNodeType : RoutingNodeType.values()) {
addSensorToMap(sensorBaseName, metricsAdder, builder, new MetricsKey(sourceType, planType, routingNodeType));
}
}
}
// Add one more sensor for collecting metrics when there is no response
addSensorToMap(sensorBaseName, metricsAdder, builder, new MetricsKey());
return builder.build();
}
use of io.confluent.ksql.util.KsqlConstants.RoutingNodeType in project ksql by confluentinc.
the class ScalablePushQueryMetrics method configureSensorMap.
private Map<MetricsKey, Sensor> configureSensorMap(final String sensorBaseName, final MetricsAdder metricsAdder) {
final ImmutableMap.Builder<MetricsKey, Sensor> builder = ImmutableMap.builder();
for (final QuerySourceType sourceType : QuerySourceType.values()) {
for (final RoutingNodeType routingNodeType : RoutingNodeType.values()) {
addSensorToMap(sensorBaseName, metricsAdder, builder, new MetricsKey(sourceType, routingNodeType));
}
}
// Add one more sensor for collecting metrics when there is no response
addSensorToMap(sensorBaseName, metricsAdder, builder, new MetricsKey());
return builder.build();
}
Aggregations