example

command
v0.0.0-...-fb45ecf Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: MIT Imports: 6 Imported by: 0

README

go-nozzle example

This is example usage of go-nozzle.

To build your own nozzle with go-nozzle, all you need to do is writing your own producer, received firehose events and produce them to anywhere you want. In this example, we define very simple producer which produces ValueMetric event to stdout (using standar golang log pacakge). If it detects slowConsumerAlert, it prompts its to stderr.

To run this example, you need CloudFoundry environment with loggregator and access authentication for that firehose endpoint.

Setup

To run this example, you need to export some environmental variables,

export DOPPLER_ADDR="wss://doppler.cloudfoundry.net"
export UAA_ADDR="https://uaa.cloudfoundry.net"
export CF_USERNAME="tcnksm"
export CF_PASSWORD="fbfanoibNI11"

Usage

After setup, you can run it like below. You can see metrics in your console.

$ go run main.go

Documentation

Overview

This directory contains a example usage of go-nozzle. See details on README.md

Jump to

Keyboard shortcuts

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