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 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.
Click to show internal directories.
Click to hide internal directories.