package
0.0.0-20250307173044-634e8ce82c05
Repository: https://github.com/sapcc/go-bits.git
Documentation: pkg.go.dev
# Functions
ConfigFromEnv fills a Config object from the following environment variables:
${envPrefix}_URL - required ${envPrefix}_CACERT - optional ${envPrefix}_CERT - optional ${envPrefix}_KEY - optional (required if client cert is given)
This function exits through logg.Fatal() if a required value is missing.
IsErrNoRows checks whether the given error is a NoRowsError.
NewBulkQueryCache initializes a BulkQueryCache that executes the given queries once per refresh interval.
# Structs
BulkQuery is a query that can be executed by type BulkQueryCache (see there for details).
BulkQueryCache queries Prometheus in bulk and caches the result.
Client provides API access to a Prometheus server.
Config contains the set of configuration parameters that are required for establishing a connection to a Prometheus instance's API.
NoRowsError is returned by PrometheusClient.GetSingleValue() if there were no result values at all.