-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor, structural and performance optimizations (#33)
* pkg/api: providing a service cache * pkg/prom: exposed metrics * pkg/api: enhancements * pkg/rt: interacting with rt.fastly.com * pkg/prom: doc.go * go mod tidy, go mod vendor * pkg/api: Option -> CacheOption, Service -> Metadata * pkg/rt: first draft of Manager, still needs tests * pkg/rt: api.Cache.Service -> Metadata * pkg/{api,rt}: clarifications and manager test * cmd/fastly-exporter: port func main * go mod tidy, go mod vendor * pkg/rt: fix manager test flake * rm old version * Dockerfile: update * Update README and improve -shard semantics * pkg/rt: jsoniter ~10x faster unmarshaling rt.fastly.com responses * README: use latest -h output * README: fixes and readability * go mod tidy, go mod vendor * Add -api-timeout and -rt-timeout flags * Add realtime_api_requests_total metric With service_id, service_name, and result labels, and result including "no data", this should help low-traffic services not appear broken. * Improve tests * pkg/rt: try to clean up Subscriber.Run/query boundary * -name-regex -> -name-{include,exclude}-regex * Add pprof endpoints * Update README.md Co-Authored-By: Jordan Neufeld <neufeldtech@users.noreply.github.com> * Update cmd/fastly-exporter/main.go Co-Authored-By: Jordan Neufeld <neufeldtech@users.noreply.github.com> * Grammar
- Loading branch information
1 parent
ba42472
commit 54b4a6c
Showing
184 changed files
with
26,447 additions
and
2,535 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
Oops, something went wrong.