fsstat

package
v5.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 6 Imported by: ? modules, 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

Overview

Package fsstat provides a MetricSet for fetching aggregated filesystem stats.

An example event looks as following:

{
  "@timestamp": "2016-05-25T19:47:57.216Z",
  "beat": {
    "hostname": "host.example.com",
    "name": "host.example.com"
  },
  "metricset": {
    "module": "system",
    "name": "fsstat",
    "rtt": 119
  },
  "system": {
    "fsstat": {
      "count": 4,
      "total_files": 60982408,
      "total_size": {
        "free": 14127017984,
        "total": 249779535360,
        "used": 235652517376
      }
    }
  },
  "type": "metricsets"
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base mb.BaseMetricSet) (mb.MetricSet, error)

New creates and returns a new instance of MetricSet.

Types

type MetricSet

type MetricSet struct {
	mb.BaseMetricSet
}

MetricSet for fetching a summary of filesystem stats.

func (*MetricSet) Fetch

func (m *MetricSet) Fetch() (common.MapStr, error)

Fetch fetches filesystem metrics for all mounted filesystems and returns a single event containing aggregated data.

Jump to

Keyboard shortcuts

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