The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/promlib
Matheus Macabu 5739be39a4
[release-12.0.2] Dependencies: Bump Go to v1.24.4 (#106565)
1 month ago
..
client Prometheus: Fix passing query timeout to upstream queries (#95104) 9 months ago
converter Chore: Remove dataplane as option from prom converter (#102320) 4 months ago
instrumentation
intervalv2
middleware
models [release-12.0.1] Dependencies: Unpin and bump github.com/getkin/kin-openapi from v0.126.0 to v0.132.0 (#105249) 2 months ago
querydata Prometheus: Remove prometheusRunQueriesInParallel feature toggle (#103824) 3 months ago
resource PromLib: Take AdHoc filters into account when requesting suggestions without label (#101555) 5 months ago
testdata Prometheus: Remove prometheusRunQueriesInParallel feature toggle (#103824) 3 months ago
utils
README.md
admission_handler.go
conversion_handler.go
go.mod [release-12.0.2] Dependencies: Bump Go to v1.24.4 (#106565) 1 month ago
go.sum [release-12.0.2] Dependencies: Bump github.com/openfga/openfga to v1.8.13 to address CVE-2025-48371 (#106116) 2 months ago
healthcheck.go
healthcheck_test.go Prometheus: Remove prometheusRunQueriesInParallel feature toggle (#103824) 3 months ago
heuristics.go
heuristics_test.go
library.go Prometheus: Read feature toggles once when creating plugin instance (#102131) 4 months ago
library_test.go

README.md

promlib

Prometheus Library (a.k.a. promlib) is the foundation of the Grafana Prometheus data source backend.

How to tag/version?

  • Checkout the commit you want to tag (git checkout <COMMIT_SHA>)
  • Run git tag pkg/promlib/<VERSION> (For example git tag pkg/promlib/v0.0.12)
    • NOTE: We're using Lightweight Tags, so no other options are required
  • Run git push origin pkg/promlib/<VERSION>
  • Verify that the tag was created successfully here
  • DO NOT RELEASE anything! Tagging is enough.
  • After tagging and waiting 5-10 minutes for go module registry to catch up just bump the promlib version on grafana/grafana
    • Bumping the version on grafana/grafana is not necessary as grafana/grafana is using the local version of it always.
    • But it is a good practice to do it.