options

package
v0.3.11-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnOptionsChange

func OnOptionsChange(oldO, newO interface{}) bool

Types

type CloudMonOptions

type CloudMonOptions struct {
	common_options.CommonOptions
	PingProbeOptions

	ResourcesSyncInterval   int64  `help:"Increment Sync Interval unit:minute" default:"10"`
	CollectMetricInterval   int64  `help:"Increment Sync Interval unit:minute" default:"6"`
	SkipMetricPullProviders string `help:"Skip indicate provider metric pull" default:""`

	InfluxDatabase string `help:"influxdb database name, default telegraf" default:"telegraf"`

	DisableServiceMetric               bool  `help:"disable service metric collect"`
	CollectServiceMetricIntervalMinute int64 `help:"Collect Service metirc Interval unit:minute" default:"5"`

	HistoryMetricPullDays          int  `help:"pull history metrics" default:"-1"`
	SupportAzureTableStorageMetric bool `help:"support collect azure memory and disk usage metric, there may be additional charges" default:"false"`

	CloudAccountCollectMetricsBatchCount        int `help:"Cloud Account Collect Metrics Batch Count" default:"10"`
	CloudResourceCollectMetricsBatchCount       int `help:"Cloud Resource Collect Metrics BatchC ount" default:"40"`
	OracleCloudResourceCollectMetricsBatchCount int `help:"OracleCloud Resource Collect Metrics BatchC ount" default:"1"`
}
var (
	Options CloudMonOptions
)

type PingProbeOptions

type PingProbeOptions struct {
	Debug         bool `help:"debug"`
	ProbeCount    int  `help:"probe count, default is 3" default:"3"`
	TimeoutSecond int  `help:"probe timeout in second, default is 1 second" default:"1"`

	DisablePingProbe      bool  `help:"enable ping probe"`
	PingProbIntervalHours int64 `help:"PingProb Interval unit:hour" default:"6"`

	PingReserveIPTimeoutHours int `help:"expire hours to reserve the probed IP, default 0, never expire" default:"0"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL