aetos

package module
v0.0.0-...-66dfafa Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 12 Imported by: 0

README

aetos

prometheus metrics exporter from config + json. Written for lightheus

example

cd example
go run main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aetos

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

Aetos represents Aetos instance

func New

func New(configPath string) *Aetos

New creates new eagle

func NewBaseWithFiles

func NewBaseWithFiles(baseConfigPath string, files []File) *Aetos

NewBaseWithFiles creates new Aetos instance, but only single namespace group is allowed, and files are supplied from external source

func (*Aetos) Debug

func (v *Aetos) Debug()

func (*Aetos) Run

func (v *Aetos) Run()

type File

type File struct {
	FilePath string            `yaml:"filepath" validate:"required"`
	Labels   map[string]string `yaml:"labels" validate:""`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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