Documentation ¶
Index ¶
- Constants
- type CloudDiscovery
- type ClusterDiscovery
- type DiscoveriesConfig
- type DiscoveriesPeriodConfig
- type Discovery
- func NewCloudDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
- func NewClusterDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
- func NewHostDiscovery(collectorClient collector.Client, hostname string, ...) Discovery
- func NewSAPSystemsDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
- func NewSaptuneDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
- func NewSubscriptionDiscovery(collectorClient collector.Client, hostname string, config DiscoveriesConfig) Discovery
- type HostDiscovery
- type PrometheusTargets
- type SAPSystemsDiscovery
- type SaptuneDiscovery
- type SaptuneDiscoveryPayload
- type SubscriptionDiscovery
Constants ¶
View Source
const CloudDiscoveryID string = "cloud_discovery"
View Source
const CloudDiscoveryMinPeriod time.Duration = 1 * time.Second
View Source
const ClusterDiscoveryID string = "ha_cluster_discovery"
View Source
const ClusterDiscoveryMinPeriod time.Duration = 1 * time.Second
View Source
const HostDiscoveryID string = "host_discovery"
View Source
const HostDiscoveryMinPeriod time.Duration = 1 * time.Second
View Source
const NodeExporterName string = "node_exporter"
View Source
const NodeExporterPort int = 9100
View Source
const SAPDiscoveryID string = "sap_system_discovery"
View Source
const SAPDiscoveryMinPeriod time.Duration = 1 * time.Second
View Source
const SaptuneDiscoveryID string = "saptune_discovery"
View Source
const SaptuneDiscoveryMinPeriod time.Duration = 1 * time.Second
View Source
const SubscriptionDiscoveryID string = "subscription_discovery"
View Source
const SubscriptionDiscoveryMinPeriod time.Duration = 20 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudDiscovery ¶
type CloudDiscovery struct {
// contains filtered or unexported fields
}
func (CloudDiscovery) Discover ¶
func (d CloudDiscovery) Discover(ctx context.Context) (string, error)
func (CloudDiscovery) GetID ¶
func (d CloudDiscovery) GetID() string
func (CloudDiscovery) GetInterval ¶
func (d CloudDiscovery) GetInterval() time.Duration
type ClusterDiscovery ¶
type ClusterDiscovery struct {
// contains filtered or unexported fields
}
This Discover handles any Pacemaker Cluster type
func (ClusterDiscovery) Discover ¶
func (c ClusterDiscovery) Discover(ctx context.Context) (string, error)
Execute one iteration of a discovery and publish the results to the collector
func (ClusterDiscovery) GetID ¶
func (c ClusterDiscovery) GetID() string
func (ClusterDiscovery) GetInterval ¶
func (c ClusterDiscovery) GetInterval() time.Duration
type DiscoveriesConfig ¶
type DiscoveriesConfig struct { DiscoveriesPeriodsConfig *DiscoveriesPeriodConfig CollectorConfig *collector.Config }
type DiscoveriesPeriodConfig ¶
type Discovery ¶
type Discovery interface { // Returns an arbitrary unique string identifier of the discovery GetID() string // Execute the discovery mechanism Discover(ctx context.Context) (string, error) // Get interval GetInterval() time.Duration }
func NewCloudDiscovery ¶
func NewCloudDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
func NewClusterDiscovery ¶
func NewClusterDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
func NewHostDiscovery ¶
func NewHostDiscovery( collectorClient collector.Client, hostname string, prometheusTargets PrometheusTargets, config DiscoveriesConfig, ) Discovery
func NewSAPSystemsDiscovery ¶
func NewSAPSystemsDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
func NewSaptuneDiscovery ¶
func NewSaptuneDiscovery(collectorClient collector.Client, config DiscoveriesConfig) Discovery
func NewSubscriptionDiscovery ¶
func NewSubscriptionDiscovery(collectorClient collector.Client, hostname string, config DiscoveriesConfig) Discovery
type HostDiscovery ¶
type HostDiscovery struct {
// contains filtered or unexported fields
}
func (HostDiscovery) Discover ¶
func (d HostDiscovery) Discover(ctx context.Context) (string, error)
Execute one iteration of a discovery and publish to the collector
func (HostDiscovery) GetID ¶
func (d HostDiscovery) GetID() string
func (HostDiscovery) GetInterval ¶
func (d HostDiscovery) GetInterval() time.Duration
type PrometheusTargets ¶
type SAPSystemsDiscovery ¶
type SAPSystemsDiscovery struct {
// contains filtered or unexported fields
}
func (SAPSystemsDiscovery) Discover ¶
func (d SAPSystemsDiscovery) Discover(ctx context.Context) (string, error)
func (SAPSystemsDiscovery) GetID ¶
func (d SAPSystemsDiscovery) GetID() string
func (SAPSystemsDiscovery) GetInterval ¶
func (d SAPSystemsDiscovery) GetInterval() time.Duration
type SaptuneDiscovery ¶
type SaptuneDiscovery struct {
// contains filtered or unexported fields
}
func (SaptuneDiscovery) Discover ¶
func (d SaptuneDiscovery) Discover(ctx context.Context) (string, error)
func (SaptuneDiscovery) GetID ¶
func (d SaptuneDiscovery) GetID() string
func (SaptuneDiscovery) GetInterval ¶
func (d SaptuneDiscovery) GetInterval() time.Duration
type SaptuneDiscoveryPayload ¶
type SaptuneDiscoveryPayload struct { PackageVersion string `json:"package_version"` SaptuneInstalled bool `json:"saptune_installed"` Status json.RawMessage `json:"status"` }
type SubscriptionDiscovery ¶
type SubscriptionDiscovery struct {
// contains filtered or unexported fields
}
func (SubscriptionDiscovery) Discover ¶
func (d SubscriptionDiscovery) Discover(ctx context.Context) (string, error)
func (SubscriptionDiscovery) GetID ¶
func (d SubscriptionDiscovery) GetID() string
func (SubscriptionDiscovery) GetInterval ¶
func (d SubscriptionDiscovery) GetInterval() time.Duration
Source Files ¶
Click to show internal directories.
Click to hide internal directories.