* 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()
* stackdriver: harden against invalid utf8
Signed-off-by: Kuat Yessenov <kuat@google.com>
* format
Signed-off-by: Kuat Yessenov <kuat@google.com>
* review
Signed-off-by: Kuat Yessenov <kuat@google.com>
* Fix useragent in stackdriver access log
Signed-off-by: gargnupur <gargnupur@google.com>
* fix tests
looks like user-agent was just getting ignored in tests before :(
Signed-off-by: gargnupur <gargnupur@google.com>
* 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
* Set TextPayload for TCP Access Log and fix source_port showing up as 0 in TCP logs
Signed-off-by: gargnupur <gargnupur@google.com>
* Fixed based on feedback. Also, added a condition for destination in payload that if destination_canonical_service is not found, change to destination_service_name.
Signed-off-by: gargnupur <gargnupur@google.com>
* Fixed based on feedback.
Signed-off-by: gargnupur <gargnupur@google.com>
* Add extra fields in stackdriver access logs to match envoy access logs
Signed-off-by: gargnupur <gargnupur@google.com>
* Fixed based on feedback
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>
* feat(edges): add support for canonical service labels in WorkloadInstance
* run clang-format
* update generated file
* clang-format
* fix go.mod
* convert to constexpr
* add missing test tmpl change
* 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
* feat(stackdriver): use app container for k8s_container when appropriate
* fix container for gateway test
* adjust method signature
* Revert "adjust method signature"
This reverts commit bd09113e4c.
* feat(stackdriver): support canonical service labels
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* address review comment
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix logic
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* 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
* validate single proxy metadata exchange and stack driver
Signed-off-by: Kuat Yessenov <kuat@google.com>
* fix a test
Signed-off-by: Kuat Yessenov <kuat@google.com>
* fix(edges): use destination service name instead of host for edges
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* fix(edges): use destination service name instead of host for edges
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
* basic TLS test
Signed-off-by: Kuat Yessenov <kuat@google.com>
* basic TLS test
Signed-off-by: Kuat Yessenov <kuat@google.com>
* fix a unit test
Signed-off-by: Kuat Yessenov <kuat@google.com>
* add mTLS certs
Signed-off-by: Kuat Yessenov <kuat@google.com>
* add principals
Signed-off-by: Kuat Yessenov <kuat@google.com>