Documentation ¶
Index ¶
- Constants
- func ActiveTimeSeries(v1api v1.API, metric string, duration, offset int) (uint64, error)
- func ChurnRate(v1api v1.API, metric string, duration, offset int) (float64, error)
- func FindCardinality(v1api v1.API, metric string, duration, offset int, lPair string) (int, error)
- func GetQueryResult(v1api v1.API, metric string, duration, offset int, lPair string, ...) (uint64, error)
- func IngestionRate(v1api v1.API, metric string, duration, offset int) (float64, error)
- func LastLoss(v1api v1.API, metric string, duration, offset int) (int, error)
- func LoadTmpl(tmplStr string) (*template.Template, error)
- func MetricInfo(v1api v1.API, metric, focusLabel string, topN, date string) (v1.TSDBWithMetricResult, error)
- func MetricSparse(v1api v1.API, metric string, duration, offset int) (int, error)
- func ResetTime(v1api v1.API, metric string, duration, offset int) (int, error)
- func ResponseTime(v1api v1.API, metric string, duration, offset int) (float32, error)
- func SampleReceived(v1api v1.API, metric string, duration, offset int) (uint64, error)
- func ScrapeInterval(v1api v1.API, metric string) (int, error)
- func SystemActiveTimeSeries(v1api v1.API, offset int) (uint64, error)
- func SystemChurnRate(v1api v1.API, offset int) (float64, error)
- func SystemIngestionRate(v1api v1.API, offset int) (float64, error)
- func TopMetrics(v1api v1.API, topN, date string) (v1.TSDBResult, error)
- func TopQueries(v1api v1.API, topN, topNMaxLifeTime string) (v1.TopQueriesResult, error)
- func UnmarshalJSON(b []byte) ([]value, error)
Constants ¶
View Source
const ( LabelCardinalityStr = "labelCardinality" DuplicatesLabelsStr = "duplicateLabels" )
Variables ¶
This section is empty.
Functions ¶
func ActiveTimeSeries ¶
func FindCardinality ¶
func GetQueryResult ¶
func IngestionRate ¶
func MetricInfo ¶
func MetricSparse ¶
func ResponseTime ¶
func SampleReceived ¶
func SystemChurnRate ¶
Reference: https://www.robustperception.io/finding-churning-targets-in-prometheus-with-scrape_series_added
func TopMetrics ¶
func TopQueries ¶
func UnmarshalJSON ¶
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. |
Click to show internal directories.
Click to hide internal directories.