heapsterk8s.io/heapster/common/riemann Index | Files

package riemann

import "k8s.io/heapster/common/riemann"

Index

Functions

func GetRiemannClient

func GetRiemannClient(config RiemannConfig) (riemanngo.Client, error)

Receives a sink, connect the riemann client.

func SendData

func SendData(client riemanngo.Client, events []riemanngo.Event) error

Send Events to Riemann using the client from the sink.

Types

type RiemannConfig

type RiemannConfig struct {
	Host      string
	Ttl       float32
	State     string
	Tags      []string
	BatchSize int
}

Used to store the Riemann configuration specified in the Heapster cli

type RiemannSink

type RiemannSink struct {
	Client riemanngo.Client
	Config RiemannConfig
	sync.RWMutex
}

contains the riemann client, the riemann configuration, and a RWMutex

func CreateRiemannSink

func CreateRiemannSink(uri *url.URL) (*RiemannSink, error)

creates a Riemann sink. Returns a riemannSink

Source Files

riemann.go

Version
v1.5.4 (latest)
Published
Jul 26, 2018
Platform
linux/amd64
Imports
7 packages
Last checked
5 days ago

Tools for package owners.