Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabelConstraintToExpression

func AddLabelConstraintToExpression(expression string, key string, values []string) (string, error)

AddLabelConstraintToExpression enhances a PromQL expression to limit it to series matching a certain label

func AddLabelConstraintToSelector

func AddLabelConstraintToSelector(metricSelector string, key string, values []string) (string, error)

AddLabelConstraintToSelector enhances a PromQL selector with an additional label selector

func LogDebug

func LogDebug(msg string, args ...interface{})

LogDebug logs a debug message if debug logging is enabled.

func LogError

func LogError(msg string, args ...interface{})

LogError logs a non-fatal error.

func LogFatal

func LogFatal(msg string, args ...interface{})

LogFatal logs a fatal error and terminates the program.

func LogInfo

func LogInfo(msg string, args ...interface{})

LogInfo logs an informational message.

func LogWarning

func LogWarning(msg string, args ...interface{})

LogWarning logs a warning of a potential error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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