config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExporterIDWebAPI is the identifier for the WebAPI exporter.
	ExporterIDWebAPI = "webapi"
	// ExporterIDCS3API is the identifier for the CS3API exporter.
	ExporterIDCS3API = "cs3api"
	// ExporterIDSiteLocations is the identifier for the Site Locations exporter.
	ExporterIDSiteLocations = "siteloc"
	// ExporterIDPrometheusSD is the identifier for the PrometheusSD SD exporter.
	ExporterIDPrometheusSD = "promsd"
)
View Source
const (
	// ConnectorIDGOCDB is the connector identifier for GOCDB.
	ConnectorIDGOCDB = "gocdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Prefix string `mapstructure:"prefix"`

	Connector      string   `mapstructure:"connector"`
	Exporters      []string `mapstructure:"exporters"`
	UpdateInterval string   `mapstructure:"update_interval"`

	GOCDB struct {
		Address string `mapstructure:"address"`
		Scope   string `mapstructure:"scope"`
	} `mapstructure:"gocdb"`

	WebAPI struct {
		Endpoint string `mapstructure:"endpoint"`
	} `yaml:"webapi"`

	CS3API struct {
		Endpoint string `mapstructure:"endpoint"`
	} `yaml:"cs3api"`

	SiteLocations struct {
		Endpoint string `mapstructure:"endpoint"`
	} `yaml:"siteloc"`

	PrometheusSD struct {
		MetricsOutputFile  string `mapstructure:"metrics_output_file"`
		BlackboxOutputFile string `mapstructure:"blackbox_output_file"`
	} `mapstructure:"promsd"`
}

Configuration holds the general Mentix configuration.

func (*Configuration) Init

func (c *Configuration) Init()

Init sets sane defaults

Jump to

Keyboard shortcuts

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