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, startupTimestamp time.Time, ...) (status StatusResponse, metrics Metrics)
- func InitializeAndUpdatePrometheusMetrics(registry *prometheus.Registry, metrics Metrics)
- func WatchAndReportStatusAndMetrics(ctx context.Context, logger log.Logger, statusFilePath string, ...) govnr.ShutdownWaiter
- type BoyarService
- type ConfigurationPollService
- type DiskMetric
- type Metrics
- type PrometheusMetrics
- type StatusResponse
Constants ¶
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) OnConfigChange ¶
func (coreBoyar *BoyarService) OnConfigChange(ctx context.Context, cfg config.NodeConfiguration) error
type ConfigurationPollService ¶
type ConfigurationPollService struct { Output <-chan config.NodeConfiguration // contains filtered or unexported fields }
func NewConfigurationPollService ¶
func NewConfigurationPollService(flags *config.Flags, logger log.Logger) *ConfigurationPollService
func (*ConfigurationPollService) Resend ¶
func (service *ConfigurationPollService) Resend()
func (*ConfigurationPollService) Start ¶
func (service *ConfigurationPollService) Start(ctx context.Context) govnr.ShutdownWaiter
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 PrometheusMetrics ¶ added in v1.6.0
type PrometheusMetrics struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.