monitor

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const NanosecondsInOneMillisecond = 1000000

Variables

This section is empty.

Functions

func CaptureFileCacheMetrics

func CaptureFileCacheMetrics(ctx context.Context, readType string, readDataSize int, cacheHit bool, readLatencyNs int64)

func CaptureGCSReadMetrics

func CaptureGCSReadMetrics(ctx context.Context, readType string, requestedDataSize int64)

func CloseOpenTelemetryCollectorExporter

func CloseOpenTelemetryCollectorExporter()

CloseOpenTelemetryCollectorExporter ensures all collected metrics are sent to the OpenTelemetry Collect and closes the exporter.

func CloseStackdriverExporter

func CloseStackdriverExporter()

CloseStackdriverExporter ensures all collected metrics are sent to Stackdriver and closes the stackdriverExporter.

func EnableOpenTelemetryCollectorExporter

func EnableOpenTelemetryCollectorExporter(address string) error

EnableOpenTelemetryCollectorExporter starts exporting monitoring metrics to the OpenTelemetry Collector at the given address. Details: https://opentelemetry.io/docs/collector/

func EnableStackdriverExporter

func EnableStackdriverExporter(interval time.Duration) error

EnableStackdriverExporter starts to collect monitoring metrics and exports them to Stackdriver iff the given interval is positive.

func NewMonitoringBucket

func NewMonitoringBucket(b gcs.Bucket) gcs.Bucket

NewMonitoringBucket returns a gcs.Bucket that exports metrics for monitoring

Types

This section is empty.

Directories

Path Synopsis
Package tags provides the tags to annotate the monitoring metrics.
Package tags provides the tags to annotate the monitoring metrics.

Jump to

Keyboard shortcuts

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