Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricsUrl = "/metrics" ProbeMetricsResourceUrl = "/probe/metrics/resource" ProbeMetricsResourceTimeoutDefault = 10 ProbeMetricsListUrl = "/probe/metrics/list" ProbeMetricsListTimeoutDefault = 120 ProbeMetricsSubscriptionUrl = "/probe/metrics" ProbeMetricsSubscriptionTimeoutDefault = 120 ProbeMetricsScrapeUrl = "/probe/metrics/scrape" ProbeMetricsScrapeTimeoutDefault = 120 ProbeMetricsResourceGraphUrl = "/probe/metrics/resourcegraph" ProbeMetricsResourceGraphTimeoutDefault = 120 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct { // logger Logger struct { Debug bool `long:"log.debug" env:"LOG_DEBUG" description:"debug mode"` Development bool `long:"log.devel" env:"LOG_DEVEL" description:"development mode"` Json bool `long:"log.json" env:"LOG_JSON" description:"Switch log output to json format"` } // azure Azure struct { Environment *string `` /* 138-byte string literal not displayed */ AdResourceUrl *string `` /* 220-byte string literal not displayed */ ServiceDiscovery struct { CacheDuration *time.Duration `` /* 218-byte string literal not displayed */ } ResourceTags []string `` /* 174-byte string literal not displayed */ } Metrics struct { Template string `` /* 144-byte string literal not displayed */ Help string `` /* 177-byte string literal not displayed */ Dimensions struct { Lowercase bool `long:"metrics.dimensions.lowercase" env:"METRIC_DIMENSIONS_LOWERCASE" description:"Lowercase dimension values"` } } // Prober settings Prober struct { ConcurrencySubscription int `` /* 172-byte string literal not displayed */ ConcurrencySubscriptionResource int `` /* 173-byte string literal not displayed */ Cache bool `long:"enable-caching" env:"ENABLE_CACHING" description:"Enable internal caching"` } // general options Server struct { // general options Bind string `long:"server.bind" env:"SERVER_BIND" description:"Server address" default:":8080"` ReadTimeout time.Duration `long:"server.timeout.read" env:"SERVER_TIMEOUT_READ" description:"Server read timeout" default:"5s"` WriteTimeout time.Duration `long:"server.timeout.write" env:"SERVER_TIMEOUT_WRITE" description:"Server write timeout" default:"10s"` } }
Click to show internal directories.
Click to hide internal directories.