process_exporter

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package process_exporter embeds https://github.com/ncabatoff/process-exporter

Package process_exporter embeds https://github.com/ncabatoff/process-exporter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Enabled enables the process_exporter integration.
	Enabled bool `yaml:"enabled"`

	CommonConfig    config.Common                `yaml:",inline"`
	ProcessExporter exporter_config.MatcherRules `yaml:"process_names"`

	ProcFSPath string `yaml:"procfs_path"`
	Children   bool   `yaml:"track_children"`
	Threads    bool   `yaml:"track_threads"`
	SMaps      bool   `yaml:"gather_smaps"`
	Recheck    bool   `yaml:"recheck_on_scrape"`
}

Config controls the process_exporter integration.

var (
	DefaultConfig Config = Config{
		ProcFSPath: "/proc",
		Children:   true,
		Threads:    true,
		SMaps:      true,
		Recheck:    false,
	}
)

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(v interface{}) error) error

type Integration

type Integration struct {
	// contains filtered or unexported fields
}

Integration is the process_exporter integration. The integration scrapes metrics based on information in the /proc filesystem for Linux. Agent's own metrics.

func New

func New(logger log.Logger, c Config) (*Integration, error)

func (*Integration) CommonConfig

func (i *Integration) CommonConfig() config.Common

CommonConfig satisfies Integration.CommonConfig.

func (*Integration) Name

func (i *Integration) Name() string

Name satisfies Integration.Name.

func (*Integration) RegisterRoutes

func (i *Integration) RegisterRoutes(r *mux.Router) error

RegisterRoutes satisfies Integration.RegisterRoutes.

func (*Integration) Run

func (i *Integration) Run(ctx context.Context) error

Run satisfies Integration.Run.

func (*Integration) ScrapeConfigs

func (i *Integration) ScrapeConfigs() []config.ScrapeConfig

ScrapeConfigs satisfies Integration.ScrapeConfigs.

Jump to

Keyboard shortcuts

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