telemetry: config field for upload sampling

This CL introduces the float64 field UploadProb into the upload
configuration file. It is the probability that an otherwise
uploadable counter report file will be uploaded to the server.
Its initial value is 1.0.

Change-Id: I2490cbba8863240126d5e1592659d1dc59d49486
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/558435
Run-TryBot: Peter Weinberger <pjw@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
3 files changed
tree: d6e54f922fdbb7c09dffdb8e73f2a8d451f4fb02
  1. cmd/
  2. config/
  3. counter/
  4. godev/
  5. internal/
  6. upload/
  7. .dockerignore
  8. .eslintrc.json
  9. .gitignore
  10. .prettierrc.json
  11. .stylelintrc.json
  12. CONTRIBUTING.md
  13. doc.go
  14. go.mod
  15. go.sum
  16. LICENSE
  17. mode.go
  18. npm
  19. npx
  20. package-lock.json
  21. package.json
  22. PATENTS
  23. README.md
  24. tsconfig.json
  25. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.