Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { General *GeneralConfig `toml:"general"` Output *OutputConfig `toml:"output"` Selfmon *SelfMonConfig `toml:"self-monitor"` Discovery *DiscoveryConfig `toml:"oracle-discovery"` OraMon *OracleMonitorConfig `toml:"oracle-monitor"` }
Config Main Configuration struct
func LoadConfigFile ¶
type DinamicParams ¶
type DinamicParams struct { SidRegex string `toml:"sid_regex"` R *regexp.Regexp `toml:"-"` ExtraLabels map[string]string `toml:"extra_labels"` OracleConnectUser string `toml:"oracle_connect_user"` OracleConnectPass string `toml:"oracle_connect_pass"` OracleConnectDSN string `toml:"oracle_connect_dsn"` }
func (*DinamicParams) Validate ¶ added in v0.2.0
func (dp *DinamicParams) Validate() error
type DiscoveryConfig ¶
type DiscoveryConfig struct { OracleClusterwareEnabled bool `toml:"oracle_clusterware_enabled"` OracleDiscoveryInterval time.Duration `toml:"oracle_discovery_interval"` OracleDiscoverySidRegex string `toml:"oracle_discovery_sid_regex"` OracleDiscoverySkipErrorsRegex []string `toml:"oracle_discovery_skip_errors_regex"` SkipErrR []*regexp.Regexp `toml:"-"` OracleConnectUser string `toml:"oracle_connect_user"` OracleConnectPass string `toml:"oracle_connect_pass"` OracleConnectDSN string `toml:"oracle_connect_dsn"` ExtraLabels map[string]string `toml:"extra_labels"` OracleStatusExtendedInfo bool `toml:"oracle_status_extended_info"` OracleLogLevel string `toml:"oracle_log_level"` DynamicParamsBySID []*DinamicParams `toml:"dynamic-params"` }
func (*DiscoveryConfig) Validate ¶ added in v0.2.0
func (dc *DiscoveryConfig) Validate() error
type GeneralConfig ¶
type GeneralConfig struct { InstanceID string `toml:"instanceID"` LogDir string `toml:"log_dir"` HomeDir string `toml:"home_dir"` DataDir string `toml:"data_dir"` LogLevel string `toml:"log_level"` }
GeneralConfig has miscellaneous configuration options
func (*GeneralConfig) Validate ¶ added in v0.2.0
func (gc *GeneralConfig) Validate() error
type OracleMetricConfig ¶
type OracleMetricConfig struct { ID string `toml:"id"` OraVerGreaterOrEqualThan string `toml:"oracle_version_greater_or_equal_than"` OraVerLessThan string `toml:"oracle_version_less_than"` Context string `toml:"context"` Labels []string `toml:"labels"` MetricsDesc map[string]string `toml:"metrics_desc"` MetricsType map[string]string `toml:"metrics_type"` FieldToAppend string `toml:"fieldtoappend"` Request string `toml:"request"` IgnoreZeroResult bool `toml:"ignorezeroresult"` }
InheritDeviceTags bool `toml:"inherit-intance-labels"`
func (*OracleMetricConfig) Validate ¶ added in v0.2.0
func (mc *OracleMetricConfig) Validate() error
type OracleMetricGroupConfig ¶
type OracleMetricGroupConfig struct { QueryLevel string `toml:"query_level"` // db/instance default instance QueryPeriod time.Duration `toml:"query_period"` QueryTimeout time.Duration `toml:"query_timeout"` Name string `toml:"name"` InstanceFilter string `toml:"instance_filter"` OracleMetrics []*OracleMetricConfig `toml:"metric"` }
func (*OracleMetricGroupConfig) Validate ¶ added in v0.2.0
func (gc *OracleMetricGroupConfig) Validate() error
type OracleMonitorConfig ¶
type OracleMonitorConfig struct { DefaultQueryTimeout time.Duration `toml:"default_query_timeout"` DefaultQueryPeriod time.Duration `toml:"default_query_period"` MetricGroup []*OracleMetricGroupConfig `toml:"mgroup"` }
func (*OracleMonitorConfig) Resume ¶
func (om *OracleMonitorConfig) Resume(f *os.File)
func (*OracleMonitorConfig) Validate ¶ added in v0.2.0
func (om *OracleMonitorConfig) Validate() error
type OutputConfig ¶
type OutputConfig struct { FlushPeriod time.Duration `toml:"flush_period"` BufferSize int `toml:"buffer_size"` BatchSize int `toml:"batch_size"` }
func (*OutputConfig) Validate ¶ added in v0.2.0
func (oc *OutputConfig) Validate() error
type SelfMonConfig ¶
type SelfMonConfig struct { Enabled bool `toml:"enabled"` ReqPeriod time.Duration `toml:"request_period"` Prefix string `toml:"measurement_prefix"` ExtraLabels map[string]string `toml:"extra_labels"` }
SelfMonConfig configuration for self monitoring
func (*SelfMonConfig) Validate ¶ added in v0.2.0
func (sc *SelfMonConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.