prometheus

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTIVE    analytics.STATE = "ACTIVE"
	NOT_READY analytics.STATE = "NOT READY"
	INACTIVE  analytics.STATE = "INACTIVE"
)

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(url string) (apiV1.API, error)

CreateClient creates a prometheus client from a URL

func LabelNamesAndValues

func LabelNamesAndValues(prom analytics.PromSeries) (*model.PromSeriesResponse, error)

LabelNamesAndValues is used to query prometheus using client for label names and values of a series

func Query

func Query(prom analytics.PromQuery, queryType string) (interface{}, error)

Query is used to query prometheus using client

func SeriesList

SeriesList is used to query prometheus using client for names of time series

func TSDBHealthCheck

func TSDBHealthCheck(url, datasourceType string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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