monitoring

package
v0.0.0-...-9febfc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

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

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.

func SetupViews

func SetupViews(ctx context.Context, version string, labels map[string]string) error

SetupViews sets up monitoring views. This can only be run once.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL