prometheus

package
v0.0.0-...-485d59a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusJob

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

func NewPrometheusJob

func NewPrometheusJob(ctx context.Context, genConfig *config.GeneralConfig, jobConfig config.QueryJob) *PrometheusJob

func (*PrometheusJob) Run

func (pj *PrometheusJob) Run(ctx context.Context) error

type QueryExecutor

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

func NewQueryExecutor

func NewQueryExecutor(queue chan config.Message, jobName string, queryConfig *config.QueryConfig, generalConfig *config.GeneralConfig, metricName string, log *zap.SugaredLogger) *QueryExecutor

func (*QueryExecutor) Run

func (qe *QueryExecutor) Run(ctx context.Context)

type QueryWorker

type QueryWorker interface {
	Run(ctx context.Context, queue chan string)
}

type SendWorker

type SendWorker interface {
	Run(ctx context.Context, queue chan string)
}

type Sender

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

func NewSender

func NewSender(queue chan config.Message, sendConfig *config.SendConfig, generalConfig *config.GeneralConfig, log *zap.SugaredLogger) *Sender

func (*Sender) BroadcastMessage

func (s *Sender) BroadcastMessage(message config.Message)

func (*Sender) ProcessNextMessage

func (s *Sender) ProcessNextMessage(ctx context.Context, client *http.Client, index int, target config.Target)

func (*Sender) Run

func (s *Sender) Run(ctx context.Context)

func (*Sender) SendHTTPRequest

func (s *Sender) SendHTTPRequest(log *zap.SugaredLogger, client *http.Client, target config.Target, message config.Message) error

TODO: Implement sending HTTP request

Jump to

Keyboard shortcuts

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