apiclient

package
v0.0.0-...-7a175ec Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelCardinalityStr = "labelCardinality"
	DuplicatesLabelsStr = "duplicateLabels"
)

Variables

This section is empty.

Functions

func ActiveTimeSeries

func ActiveTimeSeries(v1api v1.API, metric string, duration, offset int) (uint64, error)

func ChurnRate

func ChurnRate(v1api v1.API, metric string, duration, offset int) (float64, error)

func FindCardinality

func FindCardinality(v1api v1.API, metric string, duration, offset int, lPair string) (int, error)

func GetQueryResult

func GetQueryResult(v1api v1.API, metric string, duration, offset int, lPair string, templType string) (uint64, error)

func IngestionRate

func IngestionRate(v1api v1.API, metric string, duration, offset int) (float64, error)

func LastLoss

func LastLoss(v1api v1.API, metric string, duration, offset int) (int, error)

func LoadTmpl

func LoadTmpl(tmplStr string) (*template.Template, error)

LoadTmpl loads the query template

func MetricInfo

func MetricInfo(v1api v1.API, metric, focusLabel string, topN, date string) (v1.TSDBWithMetricResult, error)

func MetricSparse

func MetricSparse(v1api v1.API, metric string, duration, offset int) (int, error)

func ResetTime

func ResetTime(v1api v1.API, metric string, duration, offset int) (int, error)

func ResponseTime

func ResponseTime(v1api v1.API, metric string, duration, offset int) (float32, error)

func SampleReceived

func SampleReceived(v1api v1.API, metric string, duration, offset int) (uint64, error)

func ScrapeInterval

func ScrapeInterval(v1api v1.API, metric string) (int, error)

func SystemActiveTimeSeries

func SystemActiveTimeSeries(v1api v1.API, offset int) (uint64, error)

func SystemIngestionRate

func SystemIngestionRate(v1api v1.API, offset int) (float64, error)

func TopMetrics

func TopMetrics(v1api v1.API, topN, date string) (v1.TSDBResult, error)

func TopQueries

func TopQueries(v1api v1.API, topN, topNMaxLifeTime string) (v1.TopQueriesResult, error)

func UnmarshalJSON

func UnmarshalJSON(b []byte) ([]value, error)

Types

This section is empty.

Directories

Path Synopsis
client_golang
api
Package api provides clients for the HTTP APIs.
Package api provides clients for the HTTP APIs.
api/prometheus/v1
Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/
Package v1 provides bindings to the Prometheus HTTP API v1: http://prometheus.io/docs/querying/api/
examples/gocollector
A minimal example of how to include Prometheus instrumentation.
A minimal example of how to include Prometheus instrumentation.
examples/random
A simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics.
A simple example exposing fictional RPC latencies with different types of random distributions (uniform, normal, and exponential) as Prometheus metrics.
examples/simple
A minimal example of how to include Prometheus instrumentation.
A minimal example of how to include Prometheus instrumentation.
prometheus
Package prometheus is the core instrumentation package.
Package prometheus is the core instrumentation package.
prometheus/collectors
Package collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics.
Package collectors provides implementations of prometheus.Collector to conveniently collect process and Go-related metrics.
prometheus/graphite
Package graphite provides a bridge to push Prometheus metrics to a Graphite server.
Package graphite provides a bridge to push Prometheus metrics to a Graphite server.
prometheus/promauto
Package promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants.
Package promauto provides alternative constructors for the fundamental Prometheus metric types and their …Vec and …Func variants.
prometheus/promhttp
Package promhttp provides tooling around HTTP servers and clients.
Package promhttp provides tooling around HTTP servers and clients.
prometheus/push
Package push provides functions to push metrics to a Pushgateway.
Package push provides functions to push metrics to a Pushgateway.
prometheus/testutil
Package testutil provides helpers to test code using the prometheus package of client_golang.
Package testutil provides helpers to test code using the prometheus package of client_golang.
prometheus/testutil/promlint
Package promlint provides a linter for Prometheus metrics.
Package promlint provides a linter for Prometheus metrics.

Jump to

Keyboard shortcuts

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