Skip to content
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

[Request] Adds CacheConfig related info #87

Merged
merged 7 commits into from
Sep 3, 2024
Merged
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 @@ -292,6 +292,54 @@ public static class Constants {
}
}

public enum CacheConfigDimension implements MetricDimension, JooqFieldValue {
CACHE_TYPE(RTFMetrics.CacheConfigDimension.Constants.TYPE_VALUE);

private final String value;

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

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

@Override
public Field<String> getField() {
return DSL.field(DSL.name(this.value), String.class);
}

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

public static class Constants {
public static final String TYPE_VALUE = "cache_type";
}
}

public enum CacheConfigValue implements MetricValue {
CACHE_MAX_SIZE(RTFMetrics.CacheConfigValue.Constants.CACHE_MAX_SIZE_VALUE);

private final String value;

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

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

public static class Constants {
public static final String CACHE_MAX_SIZE_VALUE = "cache_max_size";
}
}

public enum MetricUnits {
CORES(Constants.CORES_VALUE),
COUNT_PER_SEC(Constants.COUNT_PER_SEC_VALUE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public enum StatExceptionCode {
RTF_THREADPOOL_METRICS_COLLECTOR_ERROR("RTFThreadPoolMetricsCollectorError"),
SHARD_STATE_COLLECTOR_ERROR("ShardStateCollectorError"),
CACHE_CONFIG_METRICS_COLLECTOR_ERROR("CacheConfigMetricsCollectorError"),
RTF_CACHE_CONFIG_METRICS_COLLECTOR_ERROR("RTFCacheConfigMetricsCollectorError"),
ADMISSION_CONTROL_COLLECTOR_ERROR("AdmissionControlCollectorError"),
CIRCUIT_BREAKER_COLLECTOR_ERROR("CircuitBreakerCollectorError"),
CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_COLLECTOR_ERROR(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public enum StatMetrics implements MeasurementSet {
"millis",
StatsType.LATENCIES,
Statistics.SUM),
RTF_CACHE_CONFIG_METRICS_COLLECTOR_EXECUTION_TIME(
"RTFCacheConfigMetricsCollectorExecutionTime",
"millis",
StatsType.LATENCIES,
Statistics.SUM),
CIRCUIT_BREAKER_COLLECTOR_EXECUTION_TIME(
"CircuitBreakerCollectorExecutionTime", "millis", StatsType.LATENCIES, Statistics.SUM),
CLUSTER_APPLIER_SERVICE_STATS_COLLECTOR_EXECUTION_TIME(
Expand Down
Loading