input

package
v0.0.0-...-ba80baf Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package input contains input plugins for collecting metrics and passing them to analysis functions.

TODO: replace sleep with the design in http://talks.golang.org/2013/advconc.slide#1, which would also provide a quit channel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphiteFetch

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

func (*GraphiteFetch) Init

func (gf *GraphiteFetch) Init(host string, metric string, initRange string, receivers []chan data.Datapoint) error

func (*GraphiteFetch) Run

func (gf *GraphiteFetch) Run() error

type GraphiteMetric

type GraphiteMetric struct {
	Target     string           `json:"target"`
	Datapoints [][]*json.Number `json:"datapoints"`
}

type GraphiteResponse

type GraphiteResponse []GraphiteMetric
Structure of graphite-webapp JSON response:

[

{
  "target": "host.metric.a",
  "datapoints": [[<metric> <timestamp>]]
},
{...}

]

Jump to

Keyboard shortcuts

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