Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrInvalidKey = "InvalidKey"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for prometheus alert rules to logzio alert rules
func NewController ¶
func NewController( kubeclientset *kubernetes.Clientset, configmapInformer corev1informers.ConfigMapInformer, interestingAnnotation *string, logzioApiToken string, logzioApiUrl string, rulesDs string, envId string, ) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
type MultiRuleGroups ¶
type MultiRuleGroups struct {
Values []rulefmt.RuleGroups
}
type PrometheusQuery ¶
type PrometheusQuery struct { Expr string `json:"expr"` Hide bool `json:"hide"` RefId string `json:"refId"` }
PrometheusQuery represents a Prometheus query.
func (PrometheusQuery) ToJSON ¶
func (p PrometheusQuery) ToJSON() (json.RawMessage, error)
ToJSON marshals the Query into a JSON byte slice
Click to show internal directories.
Click to hide internal directories.