├── .bazelignore ├── .bazelrc ├── .cloudbuild └── should_tag_latest.sh ├── .gitignore ├── BUILD.bazel ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── WORKSPACE ├── agentid ├── BUILD.bazel ├── agentid.go └── agentid_test.go ├── clock ├── BUILD.bazel └── clock.go ├── cloudbuild-tag.yaml ├── cloudbuild.Dockerfile ├── cloudbuild.yaml ├── config ├── BUILD.bazel ├── config.go ├── config_test.go ├── endpoint.go ├── filters.go ├── filters_test.go ├── identity.go ├── metrics.go ├── metrics_test.go ├── sources.go └── sources_test.go ├── doc ├── DESIGN.md └── pipeline.png ├── docker └── ubbagent-start ├── examples └── disk-only.yaml ├── go.mod ├── go.sum ├── http ├── BUILD.bazel └── http.go ├── main.go ├── metrics ├── BUILD.bazel ├── definition.go ├── report.go └── report_test.go ├── persistence ├── BUILD.bazel ├── disk.go ├── disk_test.go ├── memory.go ├── persistence.go ├── persistence_test.go ├── queue.go └── value.go ├── pipeline ├── BUILD.bazel ├── builder │ ├── BUILD.bazel │ ├── builder.go │ └── builder_test.go ├── endpoint.go ├── endpoints │ ├── BUILD.bazel │ ├── disk.go │ ├── disk_test.go │ ├── servicecontrol.go │ └── servicecontrol_test.go ├── inputs │ ├── BUILD.bazel │ ├── aggregator.go │ ├── aggregator_test.go │ ├── inputs.go │ └── inputs_test.go ├── pipeline.go ├── sender.go ├── senders │ ├── BUILD.bazel │ ├── dispatcher.go │ ├── dispatcher_test.go │ ├── retry.go │ └── retry_test.go └── sources │ ├── BUILD.bazel │ ├── heartbeat.go │ └── heartbeat_test.go ├── sdk ├── BUILD.bazel ├── cpp │ ├── BUILD.bazel │ ├── agent.cc │ ├── agent.h │ ├── agent_test.cc │ └── api.go ├── python3 │ ├── api.c │ ├── api.go │ ├── api.h │ └── test.py └── sdk.go ├── stats ├── BUILD.bazel ├── basic.go ├── basic_test.go └── stats.go ├── testlib ├── BUILD.bazel ├── clock.go ├── clock_test.go └── mock.go └── util ├── BUILD.bazel └── util.go /.bazelignore: -------------------------------------------------------------------------------- 1 | .GOPATH 2 | -------------------------------------------------------------------------------- /.bazelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/.bazelrc -------------------------------------------------------------------------------- /.cloudbuild/should_tag_latest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/.cloudbuild/should_tag_latest.sh -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/.gitignore -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/BUILD.bazel -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/README.md -------------------------------------------------------------------------------- /WORKSPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/WORKSPACE -------------------------------------------------------------------------------- /agentid/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/agentid/BUILD.bazel -------------------------------------------------------------------------------- /agentid/agentid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/agentid/agentid.go -------------------------------------------------------------------------------- /agentid/agentid_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/agentid/agentid_test.go -------------------------------------------------------------------------------- /clock/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/clock/BUILD.bazel -------------------------------------------------------------------------------- /clock/clock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/clock/clock.go -------------------------------------------------------------------------------- /cloudbuild-tag.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/cloudbuild-tag.yaml -------------------------------------------------------------------------------- /cloudbuild.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/cloudbuild.Dockerfile -------------------------------------------------------------------------------- /cloudbuild.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/cloudbuild.yaml -------------------------------------------------------------------------------- /config/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/BUILD.bazel -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/config_test.go -------------------------------------------------------------------------------- /config/endpoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/endpoint.go -------------------------------------------------------------------------------- /config/filters.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/filters.go -------------------------------------------------------------------------------- /config/filters_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/filters_test.go -------------------------------------------------------------------------------- /config/identity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/identity.go -------------------------------------------------------------------------------- /config/metrics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/metrics.go -------------------------------------------------------------------------------- /config/metrics_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/metrics_test.go -------------------------------------------------------------------------------- /config/sources.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/sources.go -------------------------------------------------------------------------------- /config/sources_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/config/sources_test.go -------------------------------------------------------------------------------- /doc/DESIGN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/doc/DESIGN.md -------------------------------------------------------------------------------- /doc/pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/doc/pipeline.png -------------------------------------------------------------------------------- /docker/ubbagent-start: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/docker/ubbagent-start -------------------------------------------------------------------------------- /examples/disk-only.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/examples/disk-only.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/go.sum -------------------------------------------------------------------------------- /http/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/http/BUILD.bazel -------------------------------------------------------------------------------- /http/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/http/http.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/main.go -------------------------------------------------------------------------------- /metrics/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/metrics/BUILD.bazel -------------------------------------------------------------------------------- /metrics/definition.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/metrics/definition.go -------------------------------------------------------------------------------- /metrics/report.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/metrics/report.go -------------------------------------------------------------------------------- /metrics/report_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/metrics/report_test.go -------------------------------------------------------------------------------- /persistence/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/BUILD.bazel -------------------------------------------------------------------------------- /persistence/disk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/disk.go -------------------------------------------------------------------------------- /persistence/disk_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/disk_test.go -------------------------------------------------------------------------------- /persistence/memory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/memory.go -------------------------------------------------------------------------------- /persistence/persistence.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/persistence.go -------------------------------------------------------------------------------- /persistence/persistence_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/persistence_test.go -------------------------------------------------------------------------------- /persistence/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/queue.go -------------------------------------------------------------------------------- /persistence/value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/persistence/value.go -------------------------------------------------------------------------------- /pipeline/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/builder/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/builder/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/builder/builder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/builder/builder.go -------------------------------------------------------------------------------- /pipeline/builder/builder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/builder/builder_test.go -------------------------------------------------------------------------------- /pipeline/endpoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoint.go -------------------------------------------------------------------------------- /pipeline/endpoints/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoints/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/endpoints/disk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoints/disk.go -------------------------------------------------------------------------------- /pipeline/endpoints/disk_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoints/disk_test.go -------------------------------------------------------------------------------- /pipeline/endpoints/servicecontrol.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoints/servicecontrol.go -------------------------------------------------------------------------------- /pipeline/endpoints/servicecontrol_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/endpoints/servicecontrol_test.go -------------------------------------------------------------------------------- /pipeline/inputs/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/inputs/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/inputs/aggregator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/inputs/aggregator.go -------------------------------------------------------------------------------- /pipeline/inputs/aggregator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/inputs/aggregator_test.go -------------------------------------------------------------------------------- /pipeline/inputs/inputs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/inputs/inputs.go -------------------------------------------------------------------------------- /pipeline/inputs/inputs_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/inputs/inputs_test.go -------------------------------------------------------------------------------- /pipeline/pipeline.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/pipeline.go -------------------------------------------------------------------------------- /pipeline/sender.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/sender.go -------------------------------------------------------------------------------- /pipeline/senders/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/senders/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/senders/dispatcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/senders/dispatcher.go -------------------------------------------------------------------------------- /pipeline/senders/dispatcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/senders/dispatcher_test.go -------------------------------------------------------------------------------- /pipeline/senders/retry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/senders/retry.go -------------------------------------------------------------------------------- /pipeline/senders/retry_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/senders/retry_test.go -------------------------------------------------------------------------------- /pipeline/sources/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/sources/BUILD.bazel -------------------------------------------------------------------------------- /pipeline/sources/heartbeat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/sources/heartbeat.go -------------------------------------------------------------------------------- /pipeline/sources/heartbeat_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/pipeline/sources/heartbeat_test.go -------------------------------------------------------------------------------- /sdk/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/BUILD.bazel -------------------------------------------------------------------------------- /sdk/cpp/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/cpp/BUILD.bazel -------------------------------------------------------------------------------- /sdk/cpp/agent.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/cpp/agent.cc -------------------------------------------------------------------------------- /sdk/cpp/agent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/cpp/agent.h -------------------------------------------------------------------------------- /sdk/cpp/agent_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/cpp/agent_test.cc -------------------------------------------------------------------------------- /sdk/cpp/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/cpp/api.go -------------------------------------------------------------------------------- /sdk/python3/api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/python3/api.c -------------------------------------------------------------------------------- /sdk/python3/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/python3/api.go -------------------------------------------------------------------------------- /sdk/python3/api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/python3/api.h -------------------------------------------------------------------------------- /sdk/python3/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/python3/test.py -------------------------------------------------------------------------------- /sdk/sdk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/sdk/sdk.go -------------------------------------------------------------------------------- /stats/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/stats/BUILD.bazel -------------------------------------------------------------------------------- /stats/basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/stats/basic.go -------------------------------------------------------------------------------- /stats/basic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/stats/basic_test.go -------------------------------------------------------------------------------- /stats/stats.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/stats/stats.go -------------------------------------------------------------------------------- /testlib/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/testlib/BUILD.bazel -------------------------------------------------------------------------------- /testlib/clock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/testlib/clock.go -------------------------------------------------------------------------------- /testlib/clock_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/testlib/clock_test.go -------------------------------------------------------------------------------- /testlib/mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/testlib/mock.go -------------------------------------------------------------------------------- /util/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/util/BUILD.bazel -------------------------------------------------------------------------------- /util/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/ubbagent/HEAD/util/util.go --------------------------------------------------------------------------------