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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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