* add support for configurability of stackdriver metrics
* add tag validity checks and support apiName and apiVersion tags
* cleanup
* address review comments
* more const refs
* update config doc
* update const refs
* push tagkey registration into configure()
* Add customized access logging support for stackdriver access logs
TODO: add support for removal of tags and customization of TCP access logs
Improve comment
Remove proto refactoring
Enable it for TCP
fix extra semi colon
add cleanupExpressions and cache for TCP
fix test
fix comments
* fix build
* fix comments
* Update doc
* update sha
* parse workload and service from resource labels
* add test
* clean up
* fix
* clean up
* skip looking at localhost endpoint
* fix
* fix
* update cluster name
1) Made batch size and interval for reporting configurable
2) Don't add labels if they are empty-> this is done for labels that are known to empty sometimes
3) Add upstream_transport_failure_reason label to logs
Signed-off-by: gargnupur <gargnupur@google.com>
Added a default timer for ticker
Signed-off-by: gargnupur <gargnupur@google.com>
Fixed feedback
Signed-off-by: gargnupur <gargnupur@google.com>
Updated
Signed-off-by: gargnupur <gargnupur@google.com>
* Enable Client Side Access Logs for SD
Fix fmt
Fix fmt
Fix test
Added config options and test for the same
Fixed after rebase
Fixed config and added another test case
Run fmt
Change from ERR_ONLY to ERR_ONLY_ON_NO_MX
Fixed based on feedback
Updated config
Updated config
Fixed based on feedback
* Fixed based on feedback
* Fix lint
* change client error access log
* Add TCP Access Log on Open
Signed-off-by: gargnupur <gargnupur@google.com>
fixed formatting
Signed-off-by: gargnupur <gargnupur@google.com>
Adding to see exact thing in PR for my own review
Signed-off-by: gargnupur <gargnupur@google.com>
Adding to see exact thing in PR for my own review -> fix formatting
Signed-off-by: gargnupur <gargnupur@google.com>
Fix tests
Signed-off-by: gargnupur <gargnupur@google.com>
Fix format
Signed-off-by: gargnupur <gargnupur@google.com>
Fix test
Signed-off-by: gargnupur <gargnupur@google.com>
* make tests parallel
Signed-off-by: gargnupur <gargnupur@google.com>
* fix lint error
Signed-off-by: gargnupur <gargnupur@google.com>
* fix test and based on feedback
Signed-off-by: gargnupur <gargnupur@google.com>
* Add log_sampled after rebase
Signed-off-by: gargnupur <gargnupur@google.com>
* Log metrics too on timeout
Signed-off-by: gargnupur <gargnupur@google.com>
* Fix based on feedback
Signed-off-by: gargnupur <gargnupur@google.com>
* Add filtered label for sampled logs
Signed-off-by: gargnupur <gargnupur@google.com>
* Fix unit test
Signed-off-by: gargnupur <gargnupur@google.com>
* Fix unit test
Signed-off-by: gargnupur <gargnupur@google.com>
* Fixed based on feedback
Signed-off-by: gargnupur <gargnupur@google.com>
* Fix based on feedback
Signed-off-by: gargnupur <gargnupur@google.com>
* switch back to envoy wasm
* remove envoy path override in check_wasm job
* fix release build
* fix release build
* fix wasm build target
* disable rbe
* fix build and restore rbe
* clean up
* format
* add bazel config rel
* fix wasm path again
* add resource class to circle macos flow
* remove large resource class and test step
* flush log entries in on done
* add a comment about logger
* clean up logging stats since it is already tracked by envoy grpc stats
* simplify vm reload test
* feat(edges): add support for reporting two batches (new vs full)
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* cleanup
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix comment in test
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* address review feedback
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* Add Access Log Sampling Filter
Format
Make it just mvp ready
Format
Fix extra line
Fix go-lint errors
Fix fmt
change to using absl::Time and absl::Duration instead of long int for time calculations
Fixed after feedback
Fix lint error
* Debug test failure in circleci
* Debug test failure in circleci
* Debug test failure in circleci
* Debug test failure in circleci
* Add lock for the cache
* Debug circle ci
* Fix test
* support extracing service name from request host
* service_name:port
* s/namespace_pos/name_pos
* update
* lint
* add initialization to service auth policy
* format
* use absl time
* update test
* address comment
* move node_info_cache to common
* add a new method to also fetch peer metadata id.
* get peer node info inside root context
* add capability to disabel node cache
* make node pointer return const
* fix test
* fix(edges reporting): fix error in reporting logic
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* add missing files
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* better error messages in test
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix mesh_id handling
* fix mesh uid in stackdriver integration test
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix mesh id logic
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* add usage of stackdriver logger and test
* add stat prefix
* add metrics and only export at server
* remove timeseries.go
* fix test due to merge conflict
* fixing the plugins
Signed-off-by: Kuat Yessenov <kuat@google.com>
* ammend
Signed-off-by: Kuat Yessenov <kuat@google.com>
* update to use filter state
Signed-off-by: Kuat Yessenov <kuat@google.com>
* fixes
Signed-off-by: Kuat Yessenov <kuat@google.com>
* update to use simpler API
Signed-off-by: Kuat Yessenov <kuat@google.com>
* updates
Signed-off-by: Kuat Yessenov <kuat@google.com>
* forgot to initialize ints
Signed-off-by: Kuat Yessenov <kuat@google.com>
* second attempt
Signed-off-by: Kuat Yessenov <kuat@google.com>
* simplify
Signed-off-by: Kuat Yessenov <kuat@google.com>
* pull latest
Signed-off-by: Kuat Yessenov <kuat@google.com>
* fix bug
Signed-off-by: Kuat Yessenov <kuat@google.com>
* update formatting
Signed-off-by: Kuat Yessenov <kuat@google.com>
* merge fix
Signed-off-by: Kuat Yessenov <kuat@google.com>
* build fix
Signed-off-by: Kuat Yessenov <kuat@google.com>
* copy traffic direction
Signed-off-by: Kuat Yessenov <kuat@google.com>
* update envoy SHA
Signed-off-by: Kuat Yessenov <kuat@google.com>
* metric record and integration test
* make test run
* make circle pass
* update go path
* try fix prow
* update sd filter and test
* clean
* remove direction from stackdriver config
* cleanup comment
* address comment
* fix build
* recover fake sd server
* add test prefix to field name
* update test config
* request and node info
* new line
* remove unused key
* change node info to protobuf.
* comment
* change text to use json string
* format
* address comment
* format
* address comment
* static_cast->dynamic_cast
* move all data extraction into onLog