package
0.0.0-20240119081019-7a5e26dbd894
Repository: https://github.com/keptn-contrib/prometheus-service.git
Documentation: pkg.go.dev

# Packages

Package fake is a generated GoMock package.

# Functions

LoadYamlConfiguration parses the given yaml configuration of the prometheus.yaml file.
NewPrometheusHandler returns a new prometheus handler that interacts with the Prometheus REST API.
NewPrometheusHelper creates a new PrometheusHelper.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrInvalidData indicates that the retrieved data from the prometheus api is invalid.
ErrMultipleValues indicates that multiple values where present in the prometheus api result.
ErrNoValues indicates that no values where present in the prometheus api result.

# Structs

Config is the root configure structure of Prometheus Origin: https://github.com/prometheus/prometheus/blob/fb2da1f26aec023b1e3c864222aaccbe01969f11/config/config.go#L221-L232.
GlobalConfig describes the contents of the prometheus.yml file Origin: https://github.com/prometheus/prometheus/blob/fb2da1f26aec023b1e3c864222aaccbe01969f11/config/config.go#L335-L348.
Handler interacts with a prometheus API endpoint.
No description provided by the author
ScrapeConfig configures a scraping unit for Prometheus.
StaticConfigLike represents a static_config element in the Prometheus configuration This structure has been adapted from https://github.com/prometheus/prometheus/blob/53ac9d6d666acaebbdb8a004b51958f3147b1bd5/discovery/targetgroup/targetgroup.go#L23-L33.

# Type aliases

API is a type alias for the prometheus api interface.
Configs is a type alias for an array of StaticConfigLike structs.
UntypedElement identifies arbitrary data.