-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: doc around metrics * feat: added prometheus dependency * define metric instrument interface * feat: init prometheus collector * feat: implement stubs for metric instrument * feat: interface established for metrics * update gauge to type interface for less type casting * update server.go and handler.go to use new instrumentation scheme * feat: update to make instrumentation static * changes in metric instrument signature * feat: add cast dependency for converting values reliably. * feat: implement interface methods * feat: add cast dependency update * feat: implement prometheus methods * feat: run server in a go routine * fix: correct error return format * fix: add missing label for count metric * feat: added log for metric server shut down * feat: convert decrement counter to a differnt metric for calculation during observation * feat: removed unused decrement counter * feat: bump raccoon to version 1.15 * update sample env files to include new metric config * feat: bump to version 1.16 for golang * bump golang version to 1.18 * fix: remove usage of errors.join since it requires go > 1.20 * feat: bump docker golang version to 1.20 * revert: docker changes for protoc * feat: bump golang version to 1.18 in go.mod * fix: label inconsistencies * feat: update setup-go version * feat: set prometheus as the default for metrics in test * feat: remove telegraf dependency from docker compose * feat: added setup go * run in same image * feat: added config values documentation * feat: upgrade running image to debian:bookworm * feat: added buckets according metric range approximates * update docs with missing metrics * refactor: set unused locally rather than using mute options * refactor: formatting and uniformity changes * feat: add logging for any error encountered during metric scrape * fix: early return while registering metrics * feat: remove 1 as bucket resolution due to low probability of the bucket filling * feat: add interface abstraction for mocking * feat: added prometheus tests * introduce delay in metric server initialisation * feat: added metric tests * feat: add metric test * remove test for statsD setup * feat: move to config instead of loading from env * refactor: refactor statsD implementation * refactor: cleanup metrics.md and fix issues * added documentation * feat: improved text on logging and help of metrics * feat: update go.mod * feat: add common config for recording runtime stats * record err in case of casting error * feat: add support for error in case of unable to cast. Added tests for the same * fix: metric name fetch
- Loading branch information
1 parent
db7f808
commit 158a8d8
Showing
29 changed files
with
1,381 additions
and
324 deletions.
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
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
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
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
Oops, something went wrong.