Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTelemetrySink ¶
func NewTelemetrySink(logger lager.Logger, client MetricClient, projectID, subscriptionID, foundation string) telemetry.Sink
NewTelemetrySink provides a telemetry.Sink that writes metrics to Stackdriver Monitoring
Types ¶
type LogAdapter ¶
func NewLogAdapter ¶
func NewLogAdapter(projectID string, batchCount int, batchDuration time.Duration, inFlight int) (LogAdapter, <-chan error)
NewLogAdapter returns a LogAdapter that can post to Stackdriver Logging.
type MetricAdapter ¶
func NewMetricAdapter ¶
func NewMetricAdapter(projectID string, client MetricClient, batchSize int, logger lager.Logger) (MetricAdapter, error)
NewMetricAdapter returns a MetricAdapater that can write to Stackdriver Monitoring
type MetricClient ¶
type MetricClient interface { Post(*monitoringpb.CreateTimeSeriesRequest) error CreateMetricDescriptor(*monitoringpb.CreateMetricDescriptorRequest) error ListMetricDescriptors(*monitoringpb.ListMetricDescriptorsRequest) ([]*metricpb.MetricDescriptor, error) }
func NewMetricClient ¶
func NewMetricClient() (MetricClient, error)
Click to show internal directories.
Click to hide internal directories.