Skip to content

Commit

Permalink
fix: fix append latency command (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian authored Jul 9, 2024
1 parent 7f1cf4d commit 76c744d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewStreamMetrics() *StreamMetrics {
Type: scraper.StreamAppendLatency,
Metric: prometheus.NewDesc(
prometheus.BuildFQName(namespace, streamSubsystem, scraper.StreamAppendLatency.String()),
"Append request latency.",
"Append stream latency.",
[]string{"server_host"}, nil,
),
}
Expand Down
2 changes: 1 addition & 1 deletion scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *Scraper) scrapeSummary(wg *sync.WaitGroup, target string, metrics map[S
func getSummaryStatsCmd(stat StatType) string {
switch stat {
case StreamAppendLatency:
return fmt.Sprintf(getStatsCmd, "server_histogram", "append_request_latency", summaryStatInterval)
return fmt.Sprintf(getStatsCmd, "server_histogram", "append_latency", summaryStatInterval)
case StreamReadLatency:
return fmt.Sprintf(getStatsCmd, "server_histogram", "read_latency", summaryStatInterval)
case CacheStoreAppendLatency:
Expand Down

0 comments on commit 76c744d

Please sign in to comment.