Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRuleFile ¶
AppendRuleFile Appends a static rule file that Bomb Squad needs into the array of rule files that may exist in the current Prometheus config
func ReUnmarshal ¶
func ReUnmarshal(rc *promcfg.RelabelConfig) error
ReUnmarshal simply marshals a RelabelConfig and unmarshals it again back into place. This is needed to accomodate an "expansion", if you will, of the prometheus.config Regexp struct's string representation that happens only upon unmarshalling it. TODO: (TODON'T?) Instead of this, figure out the unmarshalling quirk and change it
Types ¶
type InstantQuery ¶
type InstantQuery struct { Status string `json:"status"` Data struct { ResultType string `json:"resultType"` Result []InstantResult `json:"result"` } `json:"data"` }
InstantQuery represents the full result of a Prometheus instant query
type InstantResult ¶
InstantResult represents a single datapoint returned in an InstantQuery
Click to show internal directories.
Click to hide internal directories.