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 ¶
Click to show internal directories.
Click to hide internal directories.