telemetry: add stackdriver metrics sink (#6957)

* telemetry: add stackdriver metrics sink

* telemetry: stackdriver go mod tidy
This commit is contained in:
Tommy Murphy
2019-08-20 17:47:08 -04:00
committed by Jeff Malnick
parent 217e0627d9
commit 1c146a1012
5 changed files with 101 additions and 0 deletions

View File

@@ -241,6 +241,14 @@ type Telemetry struct {
// Default: 24h
PrometheusRetentionTime time.Duration `hcl:"-"`
PrometheusRetentionTimeRaw interface{} `hcl:"prometheus_retention_time"`
// Stackdriver:
// StackdriverProjectID is the project to publish stackdriver metrics to.
StackdriverProjectID string `hcl:"stackdriver_project_id"`
// StackdriverLocation is the GCP or AWS region of the monitored resource.
StackdriverLocation string `hcl:"stackdriver_location"`
// StackdriverNamespace is the namespace identifier, such as a cluster name.
StackdriverNamespace string `hcl:"stackdriver_namespace"`
}
func (s *Telemetry) GoString() string {