collector

package
v3.0.0-...-28adb68 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInfo

func BuildInfo(cfg *config.Config) component.BuildInfo

BuildInfo returns all the OTel collector BuildInfo supported based on https://github.com/DataDog/datadog-agent/blob/main/comp/otelcol/collector-contrib/impl/collectorcontrib.go

func ConfigProviderSettings

func ConfigProviderSettings(cfg *config.Config) otelcol.ConfigProviderSettings

ConfigProviderSettings are the settings to configure the behavior of the ConfigProvider.

func OTelCollectorSettings

func OTelCollectorSettings(cfg *config.Config) otelcol.CollectorSettings

func OTelComponentFactories

func OTelComponentFactories() (otelcol.Factories, error)

OTelComponentFactories returns all the OTel collector components supported based on https://github.com/DataDog/datadog-agent/blob/main/comp/otelcol/collector-contrib/impl/collectorcontrib.go

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector The OTel collector plugin start an embedded OTel collector for metrics collection in the OTel format.

func New

func New(conf *config.Config) (*Collector, error)

NewCollector is the constructor for the Collector plugin.

func (*Collector) Close

func (oc *Collector) Close(ctx context.Context) error

Close the plugin.

func (*Collector) GetState

func (oc *Collector) GetState() otelcol.State

func (*Collector) Info

func (oc *Collector) Info() *bus.Info

Info the plugin.

func (*Collector) Init

Init initializes and starts the plugin

func (*Collector) Process

func (oc *Collector) Process(ctx context.Context, msg *bus.Message)

Process an incoming Message Bus message in the plugin

func (*Collector) Subscriptions

func (oc *Collector) Subscriptions() []string

Subscriptions returns the list of topics the plugin is subscribed to

Jump to

Keyboard shortcuts

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