Documentation ¶
Index ¶
Constants ¶
View Source
const Type config.Type = "filesystem"
Type is the component type name.
Variables ¶
View Source
var A = Attributes
A is an alias for Attributes.
View Source
var AttributeState = struct { Free string Reserved string Used string }{ "free", "reserved", "used", }
AttributeState are the possible values that the attribute "state" can have.
View Source
var Attributes = struct { // Device (Identifier of the filesystem.) Device string // Mode (Mountpoint mode such "ro", "rw", etc.) Mode string // Mountpoint (Mountpoint path.) Mountpoint string // State (Breakdown of filesystem usage by type.) State string // Type (Filesystem type, such as, "ext4", "tmpfs", etc.) Type string }{ "device", "mode", "mountpoint", "state", "type", }
Attributes contains the possible metric attributes that can be used.
View Source
var M = Metrics
M contains a set of methods for each metric that help with manipulating those metrics. M is an alias for Metrics
View Source
var Metrics = &metricStruct{ &metricImpl{ "system.filesystem.inodes.usage", func(metric pdata.Metric) { metric.SetName("system.filesystem.inodes.usage") metric.SetDescription("FileSystem inodes used.") metric.SetUnit("{inodes}") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(false) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "system.filesystem.usage", func(metric pdata.Metric) { metric.SetName("system.filesystem.usage") metric.SetDescription("Filesystem bytes used.") metric.SetUnit("By") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(false) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, }
Metrics contains a set of methods for each metric that help with manipulating those metrics.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.