Documentation ¶
Index ¶
- Constants
- func Bootstrap(ctx context.Context, flags *config.Flags, logger log.Logger) (*config.Flags, error)
- func Execute(ctx context.Context, flags *config.Flags, logger log.Logger) (govnr.ShutdownWaiter, error)
- func GetSerializedMetrics(registry *prometheus.Registry) (value string, err error)
- func GetStatusAndMetrics(ctx context.Context, logger log.Logger, flags *config.Flags, ...) (status StatusResponse, metrics Metrics)
- func InitializeAndUpdatePrometheusMetrics(registry *prometheus.Registry, metrics Metrics)
- func WatchAndReportStatusAndMetrics(ctx context.Context, logger log.Logger, flags *config.Flags) govnr.ShutdownWaiter
- type BoyarService
- func (coreBoyar *BoyarService) CheckForUpdates(flags *config.Flags, options adapter.ExecutableImageOptions) (shouldExit bool)
- func (coreBoyar *BoyarService) OnConfigChange(ctx context.Context, cfg config.NodeConfiguration) error
- func (coreBoyar *BoyarService) SelfUpdate(targetPath string, image adapter.ExecutableImageOptions) error
- type DiskMetric
- type Metrics
- type ProcessMetric
- type PrometheusMetrics
- type StatusResponse
Constants ¶
View Source
const MAX_CPU_LOAD = 75
View Source
const MAX_MEMORY_USED = 75
View Source
const SERVICE_STATUS_REPORT_PERIOD = 30 * time.Second
View Source
const SERVICE_STATUS_REPORT_TIMEOUT = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
func GetSerializedMetrics ¶ added in v1.6.0
func GetSerializedMetrics(registry *prometheus.Registry) (value string, err error)
func GetStatusAndMetrics ¶ added in v1.6.0
func InitializeAndUpdatePrometheusMetrics ¶ added in v1.6.0
func InitializeAndUpdatePrometheusMetrics(registry *prometheus.Registry, metrics Metrics)
func WatchAndReportStatusAndMetrics ¶ added in v1.6.0
Types ¶
type BoyarService ¶
type BoyarService struct {
// contains filtered or unexported fields
}
func NewCoreBoyarService ¶
func NewCoreBoyarService(logger log.Logger) *BoyarService
func (*BoyarService) CheckForUpdates ¶ added in v1.8.0
func (coreBoyar *BoyarService) CheckForUpdates(flags *config.Flags, options adapter.ExecutableImageOptions) (shouldExit bool)
func (*BoyarService) OnConfigChange ¶
func (coreBoyar *BoyarService) OnConfigChange(ctx context.Context, cfg config.NodeConfiguration) error
func (*BoyarService) SelfUpdate ¶ added in v1.8.0
func (coreBoyar *BoyarService) SelfUpdate(targetPath string, image adapter.ExecutableImageOptions) error
type DiskMetric ¶ added in v1.6.0
type DiskMetric struct { Mountpoint string TotalMbytes float64 UsedMbytes float64 UsedPercent float64 }
func ReadDiskMetrics ¶ added in v1.6.0
func ReadDiskMetrics(logger log.Logger) (diskMetrics []DiskMetric, errors []error)
type Metrics ¶ added in v1.6.0
type Metrics struct { BoyarUptime float64 CPULoadPercent float64 MemoryUsedPercent float64 MemoryUsedMBytes float64 MemoryTotalMBytes float64 EFSAccessTimeMs uint64 Disks []DiskMetric Processes []ProcessMetric }
type ProcessMetric ¶ added in v1.11.1
type PrometheusMetrics ¶ added in v1.6.0
type PrometheusMetrics struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.