 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var Config = ConfigType{ ExtrapolateExperiment: false, Listen: "[::]:8081", Buckets: 10, Concurency: 20, SendGlobsAsIs: false, AlwaysSendGlobsAsIs: false, MaxBatchSize: 100, Cache: CacheConfig{ Type: "mem", DefaultTimeoutSec: 60, }, TimezoneString: "", Graphite: GraphiteConfig{ Pattern: "{prefix}.{fqdn}", Host: "", Interval: 60 * time.Second, Prefix: "carbon.api", }, Cpus: 0, IdleConnections: 10, PidFile: "", QueryCache: cache.NullCache{}, FindCache: cache.NullCache{}, DefaultTimeZone: time.Local, Logger: []zapwriter.Config{DefaultLoggerConfig}, Upstreams: zipperCfg.Config{ Timeouts: zipperTypes.Timeouts{ Render: 10000 * time.Second, Find: 2 * time.Second, Connect: 200 * time.Millisecond, }, KeepAliveInterval: 30 * time.Second, MaxIdleConnsPerHost: 100, }, ExpireDelaySec: 10 * 60, GraphiteWeb09Compatibility: false, }
      View Source
      
  
var DefaultLoggerConfig = zapwriter.Config{
	Logger:           "",
	File:             "stdout",
	Level:            "info",
	Encoding:         "console",
	EncodingTime:     "iso8601",
	EncodingDuration: "seconds",
}
    Functions ¶
func SetUpConfig ¶
func SetUpConfigUpstreams ¶
Types ¶
type CacheConfig ¶
type ConfigType ¶
type ConfigType struct {
	ExtrapolateExperiment      bool               `mapstructure:"extrapolateExperiment"`
	Logger                     []zapwriter.Config `mapstructure:"logger"`
	Listen                     string             `mapstructure:"listen"`
	Buckets                    int                `mapstructure:"buckets"`
	Concurency                 int                `mapstructure:"concurency"`
	Cache                      CacheConfig        `mapstructure:"cache"`
	Cpus                       int                `mapstructure:"cpus"`
	TimezoneString             string             `mapstructure:"tz"`
	UnicodeRangeTables         []string           `mapstructure:"unicodeRangeTables"`
	Graphite                   GraphiteConfig     `mapstructure:"graphite"`
	IdleConnections            int                `mapstructure:"idleConnections"`
	PidFile                    string             `mapstructure:"pidFile"`
	SendGlobsAsIs              bool               `mapstructure:"sendGlobsAsIs"`
	AlwaysSendGlobsAsIs        bool               `mapstructure:"alwaysSendGlobsAsIs"`
	MaxBatchSize               int                `mapstructure:"maxBatchSize"`
	Zipper                     string             `mapstructure:"zipper"`
	Upstreams                  zipperCfg.Config   `mapstructure:"upstreams"`
	ExpireDelaySec             int32              `mapstructure:"expireDelaySec"`
	GraphiteWeb09Compatibility bool               `mapstructure:"graphite09compat"`
	IgnoreClientTimeout        bool               `mapstructure:"ignoreClientTimeout"`
	DefaultColors              map[string]string  `mapstructure:"defaultColors"`
	GraphTemplates             string             `mapstructure:"graphTemplates"`
	FunctionsConfigs           map[string]string  `mapstructure:"functionsConfig"`
	QueryCache cache.BytesCache `mapstructure:"-" json:"-"`
	FindCache  cache.BytesCache `mapstructure:"-" json:"-"`
	DefaultTimeZone *time.Location `mapstructure:"-" json:"-"`
	// ZipperInstance is API entry to carbonzipper
	ZipperInstance interfaces.CarbonZipper `mapstructure:"-" json:"-"`
	// Limiter limits concurrent zipper requests
	Limiter limiter.SimpleLimiter `mapstructure:"-" json:"-"`
}
    func (ConfigType) String ¶
func (c ConfigType) String() string
 Click to show internal directories. 
   Click to hide internal directories.