config

package
v0.0.0-...-6622231 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config provides specific configuration options.

Index

Constants

View Source
const (
	DefaultRegistryFileName string = "/var/lib/influxdb-zabbix/influxdb-zabbix.json"
	DefaultLogFileName      string = "/var/log/influxdb-zabbix/influxdb-zabbix.log"
	DefaultModes            string = "console"
	DefaultBufferLen        int    = 10000
	DefaultLevelConsole     string = "Trace"
	DefaultLevelFile        string = "Warn"
	DefaultFormatting       bool   = true
	DefaultLogRotate        bool   = true
	DefaultMaxLines         int    = 1000000
	DefaultMaxSizeShift     int    = 28
	DefaultDailyRotate      bool   = true
	DefaultMaxDays          int    = 7

	DefaultPollingInterval        int = 30
	DefaultPollingIntervalIfError int = 60

	DefaultInfluxDBUrl       string = "http://localhost:8086"
	DefaultInfluxDBTimeOut   int    = 0
	DefaultInfluxDBDatabase  string = "zabbix"
	DefaultInfluxDBPrecision string = "ms"

	DefaultZabbixAddress      string = "host=localhost user=zabbix sslmode=disable database=zabbix"
	DefaultTableInterval      int    = 15
	DefaultHoursPerBatch      int    = 320 // 15 days
	DefaultOutputRowsPerBatch int    = 100000
)

Variables

This section is empty.

Functions

func Parse

func Parse(tomlConfig *TOMLConfig) error

func Validate

func Validate(tomlConfig *TOMLConfig) error

Types

type TOMLConfig

type TOMLConfig struct {
	InfluxDB influxDB
	Zabbix   map[string]*zabbix
	Tables   map[string]*Table
	Polling  polling
	Logging  logging
	Registry registry
}

type Table

type Table struct {
	Name               string
	Active             bool
	Interval           int
	Startdate          string
	Hoursperbatch      int
	Outputrowsperbatch int
}

Jump to

Keyboard shortcuts

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