taskcluster-worker: github.com/taskcluster/taskcluster-worker/runtime/monitoring Index | Files

package monitoring

import "github.com/taskcluster/taskcluster-worker/runtime/monitoring"

Package monitoring provides multiple implementations of runtime.Monitor.

In addition to supplying runtime.Monitor implementations this package also provides a ConfigSchema and a generic New(config) method that can be used to instantiate one of the implementations dependening on configuration. This allows for configurable selection of monitoring strategy without complicating the application with configuration.

Index

Package Files

config.go doc.go loggingmonitor.go monitor.go syslog_posix.go

Variables

var ConfigSchema schematypes.Schema = schematypes.OneOf{
    mockConfigSchema,
    monitorConfigSchema,
}

ConfigSchema for configuration given to New()

func New Uses

func New(config interface{}, auth client.Auth) runtime.Monitor

New returns a runtime.Monitor strategy from config matching ConfigSchema.

func NewLoggingMonitor Uses

func NewLoggingMonitor(logLevel string, tags map[string]string, syslogName string) runtime.Monitor

NewLoggingMonitor creates a monitor that just logs everything. This won't attempt to send anything to sentry or statsum.

func NewMonitor Uses

func NewMonitor(project string, auth client.Auth, logLevel string, tags map[string]string, syslogName string) runtime.Monitor

NewMonitor creates a new monitor

func PreConfig Uses

func PreConfig() runtime.Monitor

PreConfig returns a default monitor for use before the configuration is loaded. This logs at the INFO level to stderr.

Package monitoring imports 17 packages (graph) and is imported by 8 packages. Updated 2017-10-10. Refresh now. Tools for package owners.