 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var DefaultConfig = Config{ ConnectionString: config_util.Secret(os.Getenv("DATA_SOURCE_NAME")), MaxOpenConns: 10, MaxIdleConns: 0, QueryTimeout: 5, CustomMetrics: []string{}, }
DefaultConfig is the default config for the oracledb v2 integration
Functions ¶
func New ¶
func New(logger log.Logger, c *Config) (integrations.Integration, error)
New creates a new oracledb integration. The integration scrapes metrics from an OracleDB exporter running with the https://github.com/oracle/oracle-db-appdev-monitoring
Types ¶
type Config ¶
type Config struct {
	ConnectionString config_util.Secret `yaml:"connection_string"`
	MaxIdleConns     int                `yaml:"max_idle_connections"`
	MaxOpenConns     int                `yaml:"max_open_connections"`
	QueryTimeout     int                `yaml:"query_timeout"`
	DefaultMetrics   string             `yaml:"default_metrics,omitempty"`
	CustomMetrics    []string           `yaml:"custom_metrics,omitempty"`
	Username         string             `yaml:"username,omitempty"`
	Password         config_util.Secret `yaml:"password,omitempty"`
}
    Config is the configuration for the oracledb v2 integration
func (*Config) InstanceKey ¶
InstanceKey returns the addr of the oracle instance.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(logger log.Logger) (integrations.Integration, error)
NewIntegration returns the OracleDB Exporter Integration
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
 Click to show internal directories. 
   Click to hide internal directories.