Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added a /metrics handler to fetch metrics data
Right now we're writing metrics data to a file. This new handler allows others to fetch metrics data. Right now the handler only returns the counts for the last 24 hours as a temporary thing. This should be changed, depending on what the metrics team needs but definitely to include measurements from the last full 24 hour measurement period.
- Loading branch information
Showing
with
22 additions
and 15 deletions.
- +5 −0 broker/broker.go
- +10 −8 broker/metrics.go
- +7 −7 broker/snowflake-broker_test.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters