godev/cmd/worker: add chart endpoint

Similar to the merge endpoint, we'll call this with Cloud Scheduler
at some interval.

Currently this job will only produce partition graph data for a single
week and relies on the upload config to determine the shape of the
output. To generate chart data for a merged report make a request to
/charts?date=<date>. A future CL will remove the query param requirement
and instead run the job for a fixed interval of days, according to the time window we allow for report uploads.

Only partition charts are generated at this time. The chart endpoint
must be updated to get the chart type from the graph config.

Change-Id: Ida14498c20bc8276e762f191ade94de9a78e2740
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/523736
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
5 files changed
tree: 9e92eb931d9a20ce2c90ed845a2276ae5b329fb7
  1. cmd/
  2. config/
  3. counter/
  4. godev/
  5. internal/
  6. upload/
  7. CONTRIBUTING.md
  8. doc.go
  9. go.mod
  10. go.sum
  11. LICENSE
  12. PATENTS
  13. README.md
  14. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

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.