hostmetricsreceiver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

README

Host Metrics Receiver

The Host Metrics receiver generates metrics about the host system. This is intended to be used when the collector is deployed as an agent.

The categories of metrics scraped can be configured under the scrapers key. For example:

hostmetrics:
  collection_interval: 1m
  scrapers:
    cpu:
    memory:
    disk:

If you would like to scrape some metrics at a different frequency than others, you can configure multiple hostmetrics receivers with different collection_interval values. For example:

receivers:
  hostmetrics:
    collection_interval: 30s
    scrapers:
      cpu:
      memory:

  hostmetrics/disk:
    collection_interval: 1m
    scrapers:
      disk:
      filesystem:

service:
  pipelines:
    metrics:
      receivers: [hostmetrics, hostmetrics/disk]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates a new factory for host metrics receiver.

Types

type Config

type Config struct {
	configmodels.ReceiverSettings `mapstructure:",squash"`

	CollectionInterval time.Duration              `mapstructure:"collection_interval"`
	Scrapers           map[string]internal.Config `mapstructure:"-"`
}

Config defines configuration for HostMetrics receiver.

Jump to

Keyboard shortcuts

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