exporter

package
v0.0.0-...-f2fa926 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) *exporter

New instantiates a new Prometheus metric exporter.

Types

type Config

type Config struct {
	Host        string
	Port        string
	Username    string
	Password    string
	TimeoutInMs int
}

Config represents an IoTDB configuration used to get the metrics.

type Scraper

type Scraper interface {
	Name() string

	Scrape(client iotdb.Client, ch chan<- prometheus.Metric) error
}

Scraper represents a scraper that gets a metric from a IoTDB instance.

Jump to

Keyboard shortcuts

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