Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implemented handler to fetch broker stats
This implements a handler at https://[snowflake-broker]/metrics for the snowflake collecTor module to fetch stats from the broker. Logged metrics are copied out to the response with a text/plain; charset=utf-8 content type. This implements bug #31376.
- Loading branch information
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
I'm confused by
os.O_APPEND|os.O_CREATE|os.O_RDONLY. Why would we want to open the file withos.O_APPEND? We're only reading it (and possibly creating it if it doesn't exist), right?