juju: github.com/juju/juju/worker/metrics/collect Index | Files

package collect

import "github.com/juju/juju/worker/metrics/collect"

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.


Package Files

context.go handler.go manifold.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a collect-metrics manifold.

type ManifoldConfig Uses

type ManifoldConfig struct {
    Period *time.Duration

    AgentName       string
    MetricSpoolName string
    CharmDirName    string

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

Package collect imports 25 packages (graph) and is imported by 27 packages. Updated 2019-09-16. Refresh now. Tools for package owners.