metric

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMetric

func FilterMetric(m *model.Metric, allowedNames []string) bool

FilterMetric based on name label and list of allowed name prefixes

func GetName

func GetName(m model.Metric) string

GetName label from a metric

func MakeLid

func MakeLid(m *model.Metric) (string, error)

MakeLid extracts the lid hash from a metric

func MakeLidName

func MakeLidName(m model.Metric) (string, string, error)

MakeLidName extracts both the lid hash and name label from a metric

func MarshalMetric

func MarshalMetric(m *model.Metric) (string, error)

MarshalMetric to JSON

Types

type Metrics

type Metrics []*model.Metric

Batch of metrics

Jump to

Keyboard shortcuts

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