Documentation ¶
Index ¶
- Constants
- func CaptureFileCacheMetrics(ctx context.Context, readType string, readDataSize int, cacheHit bool, ...)
- func CaptureGCSReadMetrics(ctx context.Context, readType string, requestedDataSize int64)
- func CloseOpenTelemetryCollectorExporter()
- func CloseStackdriverExporter()
- func EnableOpenTelemetryCollectorExporter(address string) error
- func EnableStackdriverExporter(interval time.Duration) error
- func NewMonitoringBucket(b gcs.Bucket) gcs.Bucket
Constants ¶
View Source
const NanosecondsInOneMillisecond = 1000000
Variables ¶
This section is empty.
Functions ¶
func CaptureFileCacheMetrics ¶
func CaptureGCSReadMetrics ¶
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 ¶
EnableOpenTelemetryCollectorExporter starts exporting monitoring metrics to the OpenTelemetry Collector at the given address. Details: https://opentelemetry.io/docs/collector/
func EnableStackdriverExporter ¶
EnableStackdriverExporter starts to collect monitoring metrics and exports them to Stackdriver iff the given interval is positive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.