Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ComponentName identifies Eventd as the component/daemon implemented in this // package. ComponentName = "eventd" // DefaultHandlerCount is the number of goroutines that will be allocated // for processing incoming events. DefaultHandlerCount = 1000 // EventsProcessedCounterVec is the name of the prometheus counter vec used to count events processed. EventsProcessedCounterVec = "sensu_go_events_processed" // EventsProcessedLabelName is the name of the label which stores prometheus values. EventsProcessedLabelName = "status" // EventsProcessedLabelSuccess is the name of the label used to count events processed successfully. EventsProcessedLabelSuccess = "success" )
Variables ¶
View Source
var ( // EventsProcessed counts the number of sensu go events processed. EventsProcessed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: EventsProcessedCounterVec, Help: "The total number of processed events", }, []string{EventsProcessedLabelName}, ) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Store store.Store EventStore store.EventStore Bus messaging.MessageBus LivenessFactory liveness.Factory }
Config configures Eventd
type Eventd ¶
type Eventd struct { Logger Logger // contains filtered or unexported fields }
Eventd handles incoming sensu events and stores them in etcd.
Click to show internal directories.
Click to hide internal directories.