prometheus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package prometheus https://github.com/prometheus/prometheus/blob/main/documentation/examples/custom-sd/adapter/adapter.go nolint:wsl,revive,gci

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

nolint:containedctx

func NewAdapter

func NewAdapter(ctx context.Context, file, name string, d discovery.Discoverer, logger log.Logger) *Adapter

func (*Adapter) Run

func (a *Adapter) Run()

Run starts a DiscoveryDriver Manager and the custom service DiscoveryDriver implementation.

type DiscoveryDriver

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

func New

func New(ctx context.Context, tasDiscovery pkg.Discovery, logger log.Logger) *DiscoveryDriver

func (*DiscoveryDriver) Run

func (d *DiscoveryDriver) Run(ctx context.Context, ch chan<- []*targetgroup.Group)

nolint:staticcheck,gocognit,varnamelen

Jump to

Keyboard shortcuts

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