Documentation
¶
Overview ¶
Package monitoring provides Cloud Monitoring (aka Stackdriver) support. It reuses the same stats with Reclient uses so that the existing dashboards and alerts can be shared. See also https://github.com/bazelbuild/reclient/blob/4d9d00de3f05c24ce2af03455243bed45e94a9fe/internal/pkg/monitoring/monitoring.go
Index ¶
- func ExportActionMetrics(ctx context.Context, latency time.Duration, ar, remoteAr *rpb.ActionResult, ...)
- func ExportBuildMetrics(ctx context.Context, latency time.Duration, cacheHitRatio float64, isErr bool)
- func NewExporter(ctx context.Context, project, prefix, rbeProject string, ...) (*stackdriver.Exporter, error)
- func SetupViews(ctx context.Context, version string, labels map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportActionMetrics ¶
func ExportActionMetrics(ctx context.Context, latency time.Duration, ar, remoteAr *rpb.ActionResult, actionErr, remoteErr error, cached bool)
ExportActionMetrics exports metrics for one log record to opencensus.
func ExportBuildMetrics ¶
func ExportBuildMetrics(ctx context.Context, latency time.Duration, cacheHitRatio float64, isErr bool)
ExportBuildMetrics exports overall build metrics to opencensus.
func NewExporter ¶
func NewExporter(ctx context.Context, project, prefix, rbeProject string, copts []option.ClientOption) (*stackdriver.Exporter, error)
NewExporter returns a new Cloud monitoring metrics exporter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.