prom

package
v0.0.0-...-fb8dd36 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package prom has functions for Prometheus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EquationFromExpr

func EquationFromExpr(expr string) (string, bool)

EquationFromExpr returns the equation from an expression. For example:

"liveness_ci_pubsub_receive_s > 60 * 60 * 24 * 2"

Will return:

"liveness_ci_pubsub_receive_s"

Note that for this to work the equation needs to be on the right hand side fo the expression, and there must be spaces on either side of any comparison operator.

If an equation can't be extracted from the expression then false is returned.

Types

This section is empty.

Directories

Path Synopsis
Package crd handles Managed Prometheus Custom Resource Definitions.
Package crd handles Managed Prometheus Custom Resource Definitions.

Jump to

Keyboard shortcuts

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