snowflake_exporter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 6 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 integration

Functions

This section is empty.

Types

type Config

type Config struct {
	AccountName string             `yaml:"account_name,omitempty"`
	Username    string             `yaml:"username,omitempty"`
	Password    config_util.Secret `yaml:"password,omitempty"`
	Role        string             `yaml:"role,omitempty"`
	Warehouse   string             `yaml:"warehouse,omitempty"`
}

Config is the configuration for the snowflake integration

func (*Config) InstanceKey

func (c *Config) InstanceKey(agentKey string) (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) (integrations.Integration, error)

NewIntegration creates a new 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