Skip to content

Commit

Permalink
Constants added for searchbackpressure rca reader to consume searchba…
Browse files Browse the repository at this point in the history
…ckpressure metrics in shared folder (#34)

* Update key metrics to be used by SearchBackPressure Node RCA (Signed-off-by: Jeffrey Liu [email protected])

Signed-off-by: CoderJeffrey <[email protected]>

* Additional Comments to explain SEARCHBP_TABLE_NAME and SEARCHBP_TYPE_DIM (signed-off-by: Jeffrey Liu [email protected])

Signed-off-by: CoderJeffrey <[email protected]>

* Update comments to sperate variables  (Signed-off-by: Jeffrey Liu [email protected])

Signed-off-by: CoderJeffrey <[email protected]>

---------

Signed-off-by: CoderJeffrey <[email protected]>
  • Loading branch information
CoderJeffrey authored Jul 3, 2023
1 parent 9c8af69 commit c0117af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ public enum SearchBackPressureStatsValue implements MetricValue {
SearchBackPressureStatsValue.Constants.SEARCHBP_SEARCH_BACK_PRESSURE_STATS_MODE),
SEARCHBP_SEARCH_BACK_PRESSURE_STATS_SEARCH_TASK_STATS(
SearchBackPressureStatsValue.Constants
.SEARCHBP_SEARCH_BACK_PRESSURE_STATS_SEARCH_TASK_STATS);
.SEARCHBP_SEARCH_BACK_PRESSURE_STATS_SEARCH_TASK_STATS),
SEARCHBP_TABLE_NAME(SearchBackPressureStatsValue.Constants.SEARCHBP_TABLE_NAME),
SEARCHBP_TYPE_DIM(SearchBackPressureStatsValue.Constants.SEARCHBP_TYPE_DIM);

private final String value;

Expand Down Expand Up @@ -1037,6 +1039,16 @@ public static class Constants {
public static final String SEARCHBP_SEARCH_BACK_PRESSURE_STATS_MODE = "mode";
public static final String SEARCHBP_SEARCH_BACK_PRESSURE_STATS_SEARCH_TASK_STATS =
"searchTaskStats";


/**
* Add SEARCHBP_TABLE_NAME for searchbackpressureRCA to find the corresponding table
*/
public static final String SEARCHBP_TABLE_NAME = "Searchbp_Stats";
/**
* Add SEARCHBP_TYPE_DIM for searchbackpressureRCA to find the cell value for each stats type
*/
public static final String SEARCHBP_TYPE_DIM = "SearchBackPressureStats";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class PerformanceAnalyzerMetrics {
public static final String sGcInfoPath = "gc_info";
public static final String sMountedPartitionMetricsPath = "mounted_part_space";
public static final String sAdmissionControlMetricsPath = "admission_control_metrics";
public static final String sSearchBackPressureMetricsPath = "search_back_pressure";
public static final String sShardIndexingPressurePath = "shard_indexing_pressure_metrics";
public static final String sKeyValueDelimitor = ":";
public static final String sMetricNewLineDelimitor = System.getProperty("line.separator");
Expand Down

0 comments on commit c0117af

Please sign in to comment.