collect

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package collect provides a worker that executes the collect-metrics hook periodically, as long as the workload has been started (between start and stop hooks). collect-metrics executes in its own execution context, which is restricted to avoid contention with uniter "lifecycle" hooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a collect-metrics manifold.

Types

type ManifoldConfig

type ManifoldConfig struct {
	Period *time.Duration

	AgentName       string
	APICallerName   string
	MetricSpoolName string
	CharmDirName    string
}

ManifoldConfig identifies the resource names upon which the collect manifold depends.

type UnitCharmLookup

type UnitCharmLookup interface {
	CharmURL(names.UnitTag) (*corecharm.URL, error)
}

UnitCharmLookup can look up the charm URL for a unit tag.

Jump to

Keyboard shortcuts

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