* 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>
* update stackdriver filter to fallback to default mesh id format when not specified
* skip setting mesh id if project number if not known
* fix comment
* fix
* fix
* fix test
* fix test again
* 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
* parent c51fe751a1
author gargnupur <gargnupur@google.com> 1594947318 +0000
committer gargnupur <gargnupur@google.com> 1595279382 -0700
Add option to enable Log Compression for stackdriver access logs
Update comment
Format
Update comment
Change it to a proto config
Use BoolValue
Use BoolValue
Remove file added by mistake
* fix fmt
Signed-off-by: gargnupur <gargnupur@google.com>
* 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
* fix(stackdriver): support turning off client metrics and http size metrics
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* remove client-side metrics option and add tests
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* rebase
* clang-format
* refactor to fix asan issues
* consolidate proxy tests to use step based framework
* lint
* extend latency boundary for asan tsan build
* sleep one sec before sending request in access log test
* prolong export period for stackdriver test to bear asan/tsan initial loading time
* address comment
* sleep a bit after envoy starting up
* 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>
* feat(stats): support grpc status codes in metrics
* wip
* add tests and fix up context
* set empty grpc_response_code
* use latest envoyproxy/envoy-wasm
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* add license/copyright banner
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix lint / format / malign issues
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix up alpn_test.cc
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix lint
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* more tests needed updating with envoy update
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* stackdriver fix
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix stackdriver onConfigure
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* remove unused using clause
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* clang-format
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* Add TCP Metrics in Istio 1.5 similar to Istio 1.4
Fix wasm_proxy test
Add timer based TCP metrics
Fix lint err
Fix lint err
Regenerate WASM file
Remove locks as WASM is single threaded
Add plugin.wasm
Fixed based on feedback
Fixed err
Regen wasm file
Fixed based on feedback
Adding wasm file
fix lint err
* fix based on feedback
* Update wasm files
* 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