Documentation ¶
Overview ¶
Package prom has functions for Prometheus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EquationFromExpr ¶
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.
Click to show internal directories.
Click to hide internal directories.