Documentation
¶
Overview ¶
Package heartbeat writes the registration of a component that is not an agent, for example the controller or the NATS server, to the registry KV bucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heartbeat ¶
type Heartbeat struct {
// contains filtered or unexported fields
}
Heartbeat writes ComponentRegistration to the registry KV on a configurable interval.
type Options ¶
type Options struct {
// KV writes the registration.
KV RegistryStore
// RegistryBucket is the KV bucket that gets the registration.
RegistryBucket string
// Hostname is the host that the component runs on.
Hostname string
// Version is the version of the component.
Version string
// Component is the kind of component, for example controller or nats.
Component string
// Process reads the CPU and the memory of the process.
Process process.Provider
// Interval is the time between two registrations.
Interval time.Duration
// Thresholds tell when the process reports a condition.
Thresholds process.ConditionThresholds
// SubComponents are the parts of the component that the registration names.
SubComponents map[string]job.SubComponentInfo
}
Options describe the component that a Heartbeat registers.