Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PluginName is the name of the Prometheus Botkube plugin.
PluginName = "prometheus"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // API refers to prometheus client. https://github.com/prometheus/client_golang API promApi.API // contains filtered or unexported fields }
Client prometheus client
type Config ¶
type Config struct { URL string `yaml:"url,omitempty"` AlertStates []promApi.AlertState `yaml:"alertStates,omitempty"` IgnoreOldAlerts *bool `yaml:"ignoreOldAlerts,omitempty"` Log config.Logger `yaml:"log"` }
Config prometheus configuration
type GetAlertsRequest ¶
type GetAlertsRequest struct { IgnoreOldAlerts bool MinAlertTime time.Time AlertStates []promApi.AlertState }
type Source ¶
type Source struct { source.HandleExternalRequestUnimplemented // contains filtered or unexported fields }
Source prometheus source plugin data structure
func (*Source) Stream ¶
func (p *Source) Stream(ctx context.Context, input source.StreamInput) (source.StreamOutput, error)
Stream streams prometheus alerts
Click to show internal directories.
Click to hide internal directories.