otelcol

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSnippet

func GetSnippet(args *OtelcolArgs) (*string, error)

GetSnippet renders the install script template with the provided args and returns the shell script as a string. Returns an empty string when args is nil.

func GetSnippetAsCloudInitWritableFile

func GetSnippetAsCloudInitWritableFile(args *OtelcolArgs) (*string, error)

GetSnippetAsCloudInitWritableFile returns the rendered install script indented with 6 spaces so it can be embedded directly as the content of a cloud-init write_files entry.

Types

type Arch

type Arch string

Arch is a Linux architecture identifier used for binary download URLs.

var (
	Ppc64le Arch = "ppc64le"
	S390x   Arch = "s390x"
	Amd64   Arch = "amd64"
	Arm64   Arch = "arm64"
)

type OtelcolArgs

type OtelcolArgs struct {
	AppCode    string
	AuthToken  string
	Index      string
	Endpoint   string
	ColVersion string            // overridden from module var if empty
	Arch       Arch              // target linux arch (ppc64le, s390x, amd64, arm64)
	SyslogPath string            // distro-specific syslog path
	SecurePath string            // distro-specific auth/secure log path
	ExtraAttrs map[string]string // additional resource attributes

	// MonitorGitLabRunner adds a filelog/gitlab-runner receiver that tails
	// /var/log/gitlab-runner/runner.log when set to true.
	MonitorGitLabRunner bool
}

OtelcolArgs holds all parameters needed to install and configure the otelcol-contrib filelog collector on a Linux host.

Jump to

Keyboard shortcuts

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