utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = os.Getenv("WAVEFRONT_DEBUG") == "true"
View Source
var Logger = log.New(os.Stdout, "[WAVEFRONT] ", 0)

Functions

func GetInternalTags

func GetInternalTags() map[string]string

GetInternalTags return tags for internal metrics

func NewCounter

func NewCounter(name string, tags map[string]string) metrics.Counter

NewCounter creates and register internal metrics

Types

type VCAPApplication

type VCAPApplication struct {
	ID   string `json:"application_id"`
	Name string `json:"application_name"`
	Idx  int    `json:"instance_index"`
}

VCAPApplication holds nozzle app info

func GetVcapApp

func GetVcapApp() (VCAPApplication, error)

GetVcapApp parse the 'VCAP_APPLICATION' env variable

Jump to

Keyboard shortcuts

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