diff --git a/internal/pkg/statprocessors/sp_namespaces.go b/internal/pkg/statprocessors/sp_namespaces.go index 08ed238..5865c33 100644 --- a/internal/pkg/statprocessors/sp_namespaces.go +++ b/internal/pkg/statprocessors/sp_namespaces.go @@ -239,7 +239,7 @@ func (nw *NamespaceStatsProcessor) refreshNamespaceStats(singleInfoKey string, i if strings.Contains(latencySubcommand, "enable-") { latencySubcommand = strings.ReplaceAll(latencySubcommand, "enable-", "") } - // some histogram command has 'hist-' prefix but the latency command does not expect hist- when issue the command + // some histogram stats has 'hist-' in the config, but the latency command does not expect hist- when issue the command if strings.Contains(latencySubcommand, "hist-") { latencySubcommand = strings.ReplaceAll(latencySubcommand, "hist-", "") } diff --git a/internal/pkg/statprocessors/sp_node_stats.go b/internal/pkg/statprocessors/sp_node_stats.go index 1f6683e..e78aa86 100644 --- a/internal/pkg/statprocessors/sp_node_stats.go +++ b/internal/pkg/statprocessors/sp_node_stats.go @@ -95,7 +95,7 @@ func (sw *NodeStatsProcessor) handleRefresh(nodeRawMetrics string) []AerospikeSt if strings.Contains(latencySubcommand, "enable-") { latencySubcommand = strings.ReplaceAll(latencySubcommand, "enable-", "") } - // some histogram command has 'hist-' prefix but the latency command does not expect hist- when issue the command + // some histogram stats has 'hist-' in the config, but the latency command does not expect hist- when issue the command if strings.Contains(latencySubcommand, "hist-") { latencySubcommand = strings.ReplaceAll(latencySubcommand, "hist-", "") }