cadvisor

package
v0.37.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	StoreContainerLabels:       true,
	AllowlistedContainerLabels: []string{""},
	EnvMetadataAllowlist:       []string{""},
	RawCgroupPrefixAllowlist:   []string{""},
	ResctrlInterval:            0,
	StorageDuration:            2 * time.Minute,

	ContainerdHost:      "/run/containerd/containerd.sock",
	ContainerdNamespace: "k8s.io",

	DockerHost:    "unix:///var/run/docker.sock",
	UseDockerTLS:  false,
	DockerTLSCert: "cert.pem",
	DockerTLSKey:  "key.pem",
	DockerTLSCA:   "ca.pem",

	DockerOnly: false,
}

DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from river.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	StoreContainerLabels       bool          `river:"store_container_labels,attr,optional"`
	AllowlistedContainerLabels []string      `river:"allowlisted_container_labels,attr,optional"`
	EnvMetadataAllowlist       []string      `river:"env_metadata_allowlist,attr,optional"`
	RawCgroupPrefixAllowlist   []string      `river:"raw_cgroup_prefix_allowlist,attr,optional"`
	PerfEventsConfig           string        `river:"perf_events_config,attr,optional"`
	ResctrlInterval            time.Duration `river:"resctrl_interval,attr,optional"`
	DisabledMetrics            []string      `river:"disabled_metrics,attr,optional"`
	EnabledMetrics             []string      `river:"enabled_metrics,attr,optional"`
	StorageDuration            time.Duration `river:"storage_duration,attr,optional"`
	ContainerdHost             string        `river:"containerd_host,attr,optional"`
	ContainerdNamespace        string        `river:"containerd_namespace,attr,optional"`
	DockerHost                 string        `river:"docker_host,attr,optional"`
	UseDockerTLS               bool          `river:"use_docker_tls,attr,optional"`
	DockerTLSCert              string        `river:"docker_tls_cert,attr,optional"`
	DockerTLSKey               string        `river:"docker_tls_key,attr,optional"`
	DockerTLSCA                string        `river:"docker_tls_ca,attr,optional"`
	DockerOnly                 bool          `river:"docker_only,attr,optional"`
}

Arguments configures the prometheus.exporter.cadvisor component.

func (*Arguments) Convert

func (a *Arguments) Convert() *cadvisor.Config

Convert returns the upstream-compatible configuration struct.

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

Jump to

Keyboard shortcuts

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