prometheus

package
v0.0.0-...-23be74b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	Url            *url.URL
	ConfigPath     string
	ConfigTemplate string
	HTTPClient     *http.Client
	Id             int
	Key            string
	// contains filtered or unexported fields
}

func New

func New(baseUrl *url.URL, configPath string, configTemplate string, id int, key string, logger log.Logger) *APIClient

return a new APIClient

func (*APIClient) Reload

func (c *APIClient) Reload() (error, int)

reload prometheus

type PrometheusConfig

type PrometheusConfig struct {
	Jobs string
}

Jump to

Keyboard shortcuts

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