newrelic_tigertonic

package module
v0.0.0-...-a68f73a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2015 License: MIT Imports: 6 Imported by: 1

README

newrelic_tigertonic

NewRelic agent for TigerTonic inspired by Gorelic.

Usage

Install dependencies:

sh bootstrap.sh

Then define your service. The working example may be a more convenient place to start.

agent := newrelic_tigertonic.NewAgent()
agent.Verbose = true
agent.NewrelicLicense = *newrelicLicense
agent.NewrelicName = "TigerTonic Example"
agent.Run()

Documentation

Overview

Package newrelic_tigertonic provides metrics output to newrelic. based on https://github.com/yvasiyarov/gorelic

Index

Constants

View Source
const (
	// DefaultNewRelicPollInterval - how often we will report metrics to NewRelic.
	// Recommended values is 60 seconds
	DefaultNewRelicPollInterval = 60

	// DefaultPollIntervalInSeconds - how often we will get  statistic
	// Default value is - every 10 seconds
	DefaultPollIntervalInSeconds = 10

	// DefaultAgentGUID is plugin ID in NewRelic.
	// You should not change it unless you want to create your own plugin.
	DefaultAgentGUID = "com.rounds.TigerTonic"

	// CurrentAgentVersion is plugin version
	CurrentAgentVersion = "0.0.2"

	// DefaultAgentName in NewRelic GUI. You can change it.
	DefaultAgentName = "TigerTonic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	NewrelicName         string
	NewrelicLicense      string
	NewrelicPollInterval int
	PollInterval         int
	Verbose              bool
	AgentGUID            string
	AgentVersion         string
	// contains filtered or unexported fields
}

Agent - is NewRelic agent implementation. Agent start separate go routine which will report data to NewRelic

func NewAgent

func NewAgent() *Agent

NewAgent build new Agent objects.

func (*Agent) Run

func (agent *Agent) Run() error

Run initialize Agent instance and start harvest go routine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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