snowflake_exporter

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Role: "ACCOUNTADMIN",
}

DefaultConfig is the default config for the snowflake v2 integration

Functions

This section is empty.

Types

type Config

type Config struct {
	AccountName string               `yaml:"account_name,omitempty"`
	Username    string               `yaml:"username,omitempty"`
	Password    string               `yaml:"password,omitempty"`
	Role        string               `yaml:"role,omitempty"`
	Warehouse   string               `yaml:"warehouse,omitempty"`
	Common      common.MetricsConfig `yaml:",inline"`
}

Config is the configuration for the snowflake v2 integration

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error

ApplyDefaults applies the integration's default configuration.

func (*Config) Identifier

func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)

Identifier returns a string that identifies the integration.

func (*Config) Name

func (c *Config) Name() string

Name returns the name of the integration this config is for.

func (*Config) NewIntegration

func (c *Config) NewIntegration(l log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)

NewIntegration creates a new v2 integration from the config.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Config

Jump to

Keyboard shortcuts

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