Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition interface {
Probe() (StatusMessage, error)
}
Condition represents an aspect of pyroscope server health.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller performs probes of health conditions.
func NewController ¶
func (*Controller) IsOutOfDiskSpace ¶ added in v0.8.0
func (c *Controller) IsOutOfDiskSpace() bool
func (*Controller) NotificationText ¶
func (c *Controller) NotificationText() string
NotificationText satisfies server.Notifier.
TODO(kolesnikovae): I think we need to make UI notifications
structured (explicit status field) and support multiple messages. At the moment there can be only one notification.
func (*Controller) Start ¶
func (c *Controller) Start()
func (*Controller) Stop ¶
func (c *Controller) Stop()
func (*Controller) Unhealthy ¶
func (c *Controller) Unhealthy() []StatusMessage
type DiskPressure ¶
func (DiskPressure) Probe ¶
func (d DiskPressure) Probe() (StatusMessage, error)
type StatusMessage ¶
Click to show internal directories.
Click to hide internal directories.