acimosaicexporter

package module
v0.0.0-...-6d52d23 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package acimosaicexporter sends metrics data to ACI Mosaic.

Index

Constants

View Source
const (
	DefaultEndpoint        = "mosaic-metrics-gateway-grpc-000.telemetry.g.apple.com:25189"
	DefaultWorkspace       = "playground-gala"
	DefaultNamespace       = "apple-ops-aa"
	DefaultCertificateFile = "~/.mosaic/client-cert.chain.pem"
	DefaultKeyFile         = "~/.mosaic/client-key.pem"
	DefaultCAFile          = "~/.mosaic/trusted-root.pem"
)

Defaults for not specified configuration settings.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() exporter.Factory

NewFactory creates a factory for Carbon exporter.

Types

type Config

type Config struct {

	// Endpoints specifies comma separated host and port to send metrics in the ACI Mosaic.
	// The default value is defined by the DefaultEndpoint constant.
	Endpoints string `mapstructure:"endpoints"`

	// Workspace is the organization in mosaic to separate it out from other unit's
	// metrics.
	// The default value is defined by the DefaultWorkspace constant, this is shared workspace
	// to play around via different teams.
	Workspace string `mapstructure:"workspace"`

	// Namespace is the group of related metrics.
	// The default value is defined by the DefaultNamespace constant, which is created to test
	// the functionality.
	Namespace string `mapstructure:"namespace"`

	CertificateFile string `mapstructure:"cert_file"`
	KeyFile         string `mapstructure:"key_file"`
	CAFile          string `mapstructure:"ca_file"`

	// ResourceToTelemetrySettings is the option for converting resource attributes to telemetry attributes.
	// "Enabled" - A boolean field to enable/disable this option. Default is `false`.
	// If enabled, all the resource attributes will be converted to metric labels by default.
	ResourceToTelemetrySettings resourcetotelemetry.Settings `mapstructure:"resource_to_telemetry_conversion"`
}

Config defines configuration for Carbon exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the exporter configuration is valid

Jump to

Keyboard shortcuts

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