Skip to content

Add dependency changes for PA shard metrics #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,31 @@ public static class Constants {
}
}

public enum OperationsValue implements MetricValue {
INDEXING_RATE(Constants.INDEXING_RATE),
SEARCH_RATE(Constants.SEARCH_RATE),
INDEXING_LATENCY(Constants.INDEXING_LATENCY),
SEARCH_LATENCY(Constants.SEARCH_LATENCY);

private final String value;

OperationsValue(String value) {
this.value = value;
}

@Override
public String toString() {
return value;
}

public static class Constants {
public static final String INDEXING_RATE = "indexing_rate";
public static final String SEARCH_RATE = "search_rate";
public static final String INDEXING_LATENCY = "indexing_latency";
public static final String SEARCH_LATENCY = "search_latency";
}
}

public enum ThreadPoolValue implements MetricValue {
THREADPOOL_QUEUE_SIZE(Constants.QUEUE_SIZE_VALUE),
THREADPOOL_REJECTED_REQS(Constants.REJECTED_VALUE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public enum StatExceptionCode {
GC_INFO_COLLECTOR_ERROR("GCInfoCollectorError"),
HEAP_METRICS_COLLECTOR_ERROR("HeapMetricsCollectorError"),
RTF_HEAP_METRICS_COLLECTOR_ERROR("RTFHeapMetricsCollectorError"),
RTF_SHARD_OPERATION_RATE_COLLECTOR_ERROR("RTFShardOperationRateCollectorError"),
MOUNTED_PARTITION_METRICS_COLLECTOR_ERROR("MountedPartitionMetricsCollectorError"),
NETWORK_COLLECTION_ERROR("NetworkCollectionError"),
OS_METRICS_COLLECTOR_ERROR("OSMetricsCollectorError"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public enum StatMetrics implements MeasurementSet {
"HeapMetricsCollectorExecutionTime", "millis", StatsType.LATENCIES, Statistics.SUM),
RTF_HEAP_METRICS_COLLECTOR_EXECUTION_TIME(
"RTFHeapMetricsCollectorExecutionTime", "millis", StatsType.LATENCIES, Statistics.SUM),
RTF_SHARD_OPERATION_RATE_COLLECTOR_EXECUTION_TIME(
"RTFShardOperationRateCollectorExecutionTime",
"millis",
StatsType.LATENCIES,
Statistics.SUM),
MOUNTED_PARTITION_METRICS_COLLECTOR_EXECUTION_TIME(
"MountedPartitionMetricsCollectorExecutionTime",
"millis",
Expand Down