config

package
v2.0.0-...-0bf61ab Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubBillingExporterConfig

type GitHubBillingExporterConfig struct {
	ListenAddress      string `` /* 131-byte string literal not displayed */
	MetricsPath        string `name:"web.telemetry-path" default:"/metrics" env:"GBE_WEB_TELEMETRY_PATH" help:"Path under which to expose metrics."`
	GithubToken        string `name:"github.token" default:"" env:"GBE_GITHUB_TOKEN" help:"Access token for GitHub"`
	GithubOrgs         string `name:"github.orgs" default:"" env:"GBE_GITHUB_ORGS" help:"Space separated list of GitHub Organizations"`
	DisabledCollectors string `name:"disabled.collectors" default:"" env:"GBE_DISABLED_COLLECTORS" help:"Space separated list of Disabled Collectors"`
	LogLevel           string `name:"log.level" default:"info" env:"GBE_LOG_LEVEL" help:"Sets the log level. Valid levels are debug, info, warn, error"`
	LogFormat          string `name:"log.format" default:"logfmt" env:"GBE_LOG_FORMAT" help:"Sets the log format. Valid formats are json and logfmt"`
	LogOutput          string `name:"log.output" default:"stdout" env:"GBE_LOG_OUTPUT" help:"Sets the log output. Valid outputs are stdout and stderr"`
}

func NewGitHubBillingExporterConfig

func NewGitHubBillingExporterConfig() GitHubBillingExporterConfig

func (GitHubBillingExporterConfig) GetCollectorConfig

func (cfg GitHubBillingExporterConfig) GetCollectorConfig() collector.CollectorConfig

func (GitHubBillingExporterConfig) GetGitHubClient

func (cfg GitHubBillingExporterConfig) GetGitHubClient() *github.Client

func (GitHubBillingExporterConfig) GetListeningAccess

func (cfg GitHubBillingExporterConfig) GetListeningAccess() string

func (GitHubBillingExporterConfig) GetLogger

func (cfg GitHubBillingExporterConfig) GetLogger() log.Logger

func (GitHubBillingExporterConfig) GetMetricsPath

func (cfg GitHubBillingExporterConfig) GetMetricsPath() string

Jump to

Keyboard shortcuts

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