insmetrics

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package insmetrics provides helpers for opencesus metrics.

Index

Constants

This section is empty.

Variables

View Source
var TagNodeStaticRole = MustTagKey("role")

Functions

func ChangeTags

func ChangeTags(ctx context.Context, mutator ...tag.Mutator) context.Context

ChangeTags wrapper around opencensus tag.New for tags modifiacations.

Panics on errors.

func InsertTag

func InsertTag(ctx context.Context, key tag.Key, value string) context.Context

InsertTag inserts (add) tag with provided value into context.

Panics on error.

func MustTagKey

func MustTagKey(key string) tag.Key

MustTagKey creates new tag.Key, panics on error

func RegisterPrometheus

func RegisterPrometheus(
	ctx context.Context,
	namespace string,
	registry *prometheus.Registry,
	reportperiod time.Duration,
	nodeRole string,
) (*censusprom.Exporter, error)

RegisterPrometheus creates prometheus exporter and registers it in opencensus view lib.

Types

This section is empty.

Jump to

Keyboard shortcuts

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