file_stats

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package file_stats provides an otelcol.receiver.file_stats component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Include string `alloy:"include,attr"`

	Controller     otelcol.ControllerArguments `alloy:",squash"`
	MetricsBuilder MetricsBuilderArguments     `alloy:",squash"`

	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`

	// Output configures where to send received data. Required.
	Output *otelcol.ConsumerArguments `alloy:"output,block"`
}

Arguments configures the otelcol.receiver.file_stats component.

func (Arguments) Convert

func (args Arguments) Convert() (otelcomponent.Config, error)

Convert implements receiver.Arguments.

func (Arguments) DebugMetricsConfig

func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments

DebugMetricsConfig implements receiver.Arguments.

func (Arguments) Exporters

Exporters implements receiver.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension

Extensions implements receiver.Arguments.

func (Arguments) NextConsumers

func (args Arguments) NextConsumers() *otelcol.ConsumerArguments

NextConsumers implements receiver.Arguments.

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implemenets syntax.Validator.

type FilterArguments

type FilterArguments struct {
	Strict string `alloy:"strict,attr,optional"`
	Regex  string `alloy:"regexp,attr,optional"`
}

FilterArguments configures the matching behavior of a FilterSet.

func (*FilterArguments) Validate

func (args *FilterArguments) Validate() error

Validate implements syntax.Validator.

type MetricArguments

type MetricArguments struct {
	Enabled bool `alloy:"enabled,attr,optional"`
}

MetricArguments provides common config for a particular metric.

type MetricsArguments

type MetricsArguments struct {
	FileAtime MetricArguments `alloy:"file.atime,block,optional"`
	FileCount MetricArguments `alloy:"file.count,block,optional"`
	FileCtime MetricArguments `alloy:"file.ctime,block,optional"`
	FileMtime MetricArguments `alloy:"file.mtime,block,optional"`
	FileSize  MetricArguments `alloy:"file.size,block,optional"`
}

MetricsArguments provides config for file_stats metrics.

func (*MetricsArguments) SetToDefault

func (args *MetricsArguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

type MetricsBuilderArguments

type MetricsBuilderArguments struct {
	Metrics            MetricsArguments            `alloy:"metrics,block,optional"`
	ResourceAttributes ResourceAttributesArguments `alloy:"resource_attributes,block,optional"`
}

MetricsBuilderArguments is a configuration for file_stats metrics builder.

func (*MetricsBuilderArguments) SetToDefault

func (args *MetricsBuilderArguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

type ResourceAttributeArguments

type ResourceAttributeArguments struct {
	Enabled        bool              `alloy:"enabled,attr,optional"`
	MetricsInclude []FilterArguments `alloy:"metrics_include,block,optional"`
	MetricsExclude []FilterArguments `alloy:"metrics_exclude,block,optional"`
}

ResourceAttributeArguments provides common config for a particular resource attribute.

type ResourceAttributesArguments

type ResourceAttributesArguments struct {
	FileName ResourceAttributeArguments `alloy:"file.name,block,optional"`
	FilePath ResourceAttributeArguments `alloy:"file.path,block,optional"`
}

ResourceATtributesArguments provides config for file_stats resource attributes.

func (*ResourceAttributesArguments) SetToDefault

func (args *ResourceAttributesArguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

Jump to

Keyboard shortcuts

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