dashboards

package
v5.6.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportDashboards

func ImportDashboards(beatName, beatVersion string,
	kibanaConfig *common.Config, esConfig *common.Config,
	dashboardsConfig *common.Config) error

func ImportDashboardsViaElasticsearch

func ImportDashboardsViaElasticsearch(config *common.Config, dashConfig *Config, msgOutputter MessageOutputter) (bool, error)

func ImportDashboardsViaKibana

func ImportDashboardsViaKibana(config *common.Config, dashConfig *Config, msgOutputter MessageOutputter) error

Types

type Config

type Config struct {
	Enabled        bool   `config:"enabled"`
	KibanaIndex    string `config:"kibana_index"`
	Index          string `config:"index"`
	Dir            string `config:"directory"`
	File           string `config:"file"`
	Beat           string `config:"beat"`
	URL            string `config:"url"`
	OnlyDashboards bool   `config:"only_dashboards"`
	OnlyIndex      bool   `config:"only_index"`
	Snapshot       bool   `config:"snapshot"`
	SnapshotURL    string `config:"snapshot_url"`
}

type ElasticsearchLoader

type ElasticsearchLoader struct {
	// contains filtered or unexported fields
}

func NewElasticsearchLoader

func NewElasticsearchLoader(cfg *common.Config, dashboardsConfig *Config, msgOutputter MessageOutputter) (*ElasticsearchLoader, error)

func (ElasticsearchLoader) Close

func (loader ElasticsearchLoader) Close() error

func (ElasticsearchLoader) CreateKibanaIndex

func (loader ElasticsearchLoader) CreateKibanaIndex() error

CreateKibanaIndex creates the kibana index if it doesn't exists and sets some index properties which are needed as a workaround for: https://github.com/elastic/beats-dashboards/issues/94

func (ElasticsearchLoader) ImportDashboard

func (loader ElasticsearchLoader) ImportDashboard(file string) error

func (ElasticsearchLoader) ImportIndex

func (loader ElasticsearchLoader) ImportIndex(file string) error

type Importer

type Importer struct {
	// contains filtered or unexported fields
}

func NewImporter

func NewImporter(version string, cfg *Config, loader Loader) (*Importer, error)

func (Importer) Import

func (imp Importer) Import() error

Import imports the Kibana dashboards according to the configuration options.

func (Importer) ImportArchive

func (imp Importer) ImportArchive() error

func (Importer) ImportDashboard

func (imp Importer) ImportDashboard(file string) error

func (Importer) ImportDir

func (imp Importer) ImportDir(dirType string, dir string) error

func (Importer) ImportFile

func (imp Importer) ImportFile(fileType string, file string) error

func (Importer) ImportKibanaDir

func (imp Importer) ImportKibanaDir(dir string) error

import Kibana dashboards and index-pattern or only one of these

type KibanaLoader

type KibanaLoader struct {
	// contains filtered or unexported fields
}

func NewKibanaLoader

func NewKibanaLoader(cfg *common.Config, dashboardsConfig *Config, msgOutputter MessageOutputter) (*KibanaLoader, error)

func (KibanaLoader) Close

func (loader KibanaLoader) Close() error

func (KibanaLoader) ImportDashboard

func (loader KibanaLoader) ImportDashboard(file string) error

func (KibanaLoader) ImportIndex

func (loader KibanaLoader) ImportIndex(file string) error

type Loader

type Loader interface {
	ImportIndex(file string) error
	ImportDashboard(file string) error

	Close() error
	// contains filtered or unexported methods
}

type MessageOutputter

type MessageOutputter func(msg string, a ...interface{})

MessageOutputter is a function type for injecting status logging into this module.

Jump to

Keyboard shortcuts

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