tgres: github.com/tgres/tgres/daemon Index | Files

package daemon

import "github.com/tgres/tgres/daemon"

Package daemon is the tgres command line server.

Index

Package Files

config.go daemon.go http.go log.go services.go

func Finish Uses

func Finish(cfg *Config)

type Config Uses

type Config struct {
    PidPath                  string   `toml:"pid-file"`
    LogPath                  string   `toml:"log-file"`
    LogCycle                 duration `toml:"log-cycle-interval"`
    DbConnectString          string   `toml:"db-connect-string"`
    MinStep                  duration `toml:"min-step"`
    MaxReceiverQueueSize     int      `toml:"max-receiver-queue-size"`
    GraphiteTextListenSpec   string   `toml:"graphite-text-listen-spec"`
    GraphiteUdpListenSpec    string   `toml:"graphite-udp-listen-spec"`
    GraphitePickleListenSpec string   `toml:"graphite-pickle-listen-spec"`
    StatsdTextListenSpec     string   `toml:"statsd-text-listen-spec"`
    StatsdUdpListenSpec      string   `toml:"statsd-udp-listen-spec"`
    HttpListenSpec           string   `toml:"http-listen-spec"`
    Workers                  int
    DSs                      []ConfigDSSpec `toml:"ds"`
    StatFlush                duration       `toml:"stat-flush-interval"`
    StatsNamePrefix          string         `toml:"stats-name-prefix"`
}

func Init Uses

func Init(cfgPath, gracefulProtos, join string) (cfg *Config)

func (*Config) FindMatchingDSSpec Uses

func (c *Config) FindMatchingDSSpec(ident serde.Ident) *rrd.DSSpec

type ConfigDSSpec Uses

type ConfigDSSpec struct {
    Regexp    regex
    Step      duration
    Heartbeat duration
    RRAs      []ConfigRRASpec
}

Needs to be exported for TOML

type ConfigRRASpec Uses

type ConfigRRASpec struct {
    Function rrd.Consolidation
    Step     time.Duration
    Span     time.Duration
    Xff      float64
}

func (*ConfigRRASpec) UnmarshalText Uses

func (r *ConfigRRASpec) UnmarshalText(text []byte) error

Package daemon imports 28 packages (graph) and is imported by 1 packages. Updated 2017-04-03. Refresh now. Tools for package owners.