config

package
v0.0.0-...-a146900 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPListenPort      int               `envconfig:"HTTP_LISTEN_PORT" default:"6061"`
	LogLevel            string            `envconfig:"LOG_LEVEL" default:"info"`
	KubeConfigPath      string            `envconfig:"KUBE_CONFIG_PATH" default:""`
	DCGMLabels          map[string]string `envconfig:"DCGM_LABELS" default:"app.kubernetes.io/name:dcgm-exporter"`
	DCGMPort            int               `envconfig:"DCGM_PORT" default:"9400"`
	DCGMMetricsEndpoint string            `envconfig:"DCGM_METRICS_ENDPOINT" default:"/metrics"`
	DCGMHost            string            `envconfig:"DCGM_HOST"`
	NodeName            string            `envconfig:"NODE_NAME"`
	ExportInterval      time.Duration     `envconfig:"EXPORT_INTERVAL" default:"15s"`
	CastAPI             string            `envconfig:"CAST_API" default:"https://api.cast.ai"`
	ClusterID           string            `envconfig:"CLUSTER_ID"`
	APIKey              string            `envconfig:"API_KEY"`
}

func GetFromEnvironment

func GetFromEnvironment() (*Config, error)

Jump to

Keyboard shortcuts

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