cloudmonitoring

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cloudmonitoring provides primitives for Cloud Monitoring integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartExporter

func StartExporter(
	ctx context.Context,
	exporterConfig ExporterConfig,
	resource *resource.Resource,
) (func(), error)

StartExporter starts the OpenTelemetry Cloud Monitoring exporter.

Types

type ExporterConfig

type ExporterConfig struct {
	Enabled                bool          `onGCE:"true"`
	Interval               time.Duration `default:"60s"`
	RuntimeInstrumentation bool          `onGCE:"true"`
	HostInstrumentation    bool          `onGCE:"true"`
}

ExporterConfig configures the metrics exporter.

Jump to

Keyboard shortcuts

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