Skip to content

Commit

Permalink
rename as get internal metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDatadog committed Mar 26, 2024
1 parent d6c794b commit c8d3903
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/fakeintake/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewServer(options ...func(*Server)) *Server {

registry := prometheus.NewRegistry()

storeMetrics := fi.store.GetMetrics()
storeMetrics := fi.store.GetInternalMetrics()
registry.MustRegister(
append(
[]prometheus.Collector{
Expand Down
4 changes: 2 additions & 2 deletions test/fakeintake/server/serverstore/in_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (s *inMemoryStore) Flush() {
s.NbPayloads.Reset()
}

// GetMetrics returns the prometheus metrics for the store
func (s *inMemoryStore) GetMetrics() []prometheus.Collector {
// GetInternalMetrics returns the prometheus metrics for the store
func (s *inMemoryStore) GetInternalMetrics() []prometheus.Collector {
return []prometheus.Collector{s.NbPayloads}
}

Expand Down
4 changes: 2 additions & 2 deletions test/fakeintake/server/serverstore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type Store interface {
GetRouteStats() map[string]int
// Flush flushes the store
Flush()
// GetMetrics returns the prometheus metrics for the store
GetMetrics() []prometheus.Collector
// GetInternalMetrics returns the prometheus metrics for the store
GetInternalMetrics() []prometheus.Collector
// Close closes the store
Close()
}
Expand Down

0 comments on commit c8d3903

Please sign in to comment.