fsstat

package
v5.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

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