exporter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package exporter exports services to filesystem for prometheus file discovery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter writes services from store to filesystem for prometheus file based service discovery.

func New

func New(b store.Backend, log *zap.SugaredLogger, destDir string) *Exporter

New creates a new exporter.

func (*Exporter) Start

func (e *Exporter) Start(ctx context.Context, server string, reSyncInterval time.Duration) error

Start starts the exporter and it blocks until context is done.

Jump to

Keyboard shortcuts

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