pkg/

directory
v0.0.0-...-33942d2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0

README

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.

Directories

Path Synopsis
aggregator module
api
Package api Grafana HTTP API.
Package api Grafana HTTP API.
apimachinery module
apis
apiserver module
clientauth
cmd
grafana command
grafana-cli command
grafana-server command
components
imguploader
Package imguploader is a generated GoMock package.
Package imguploader is a generated GoMock package.
imguploader/gcs
Package gcs provides an image uploader for GCS.
Package gcs provides an image uploader for GCS.
satokengen/cmd command
simplejson
Package simplejson provides a wrapper for arbitrary JSON objects that adds methods to access properties.
Package simplejson provides a wrapper for arbitrary JSON objects that adds methods to access properties.
mathexp/parse
Package parse builds parse trees for expressions as defined by expr.
Package parse builds parse trees for expressions as defined by expr.
ml
sql
generated
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/service/v0alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/service/v0alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
ifaces
gcsifaces
Package gcsifaces provides interfaces for Google Cloud Storage.
Package gcsifaces provides interfaces for Google Cloud Storage.
infra
db
fs
log
metrics/graphitebridge
Package graphitebridge provides a bridge to push Prometheus metrics to a Graphite server.
Package graphitebridge provides a bridge to push Prometheus metrics to a Graphite server.
login
mocks
mock_gcsifaces
Package mock_gcsifaces is a generated GoMock package.
Package mock_gcsifaces is a generated GoMock package.
iam
backendplugin
Package backendplugin contains backend plugin related logic.
Package backendplugin contains backend plugin related logic.
log
manager/pipeline/termination
Package termination defines the Termination stage of the plugin loader pipeline.
Package termination defines the Termination stage of the plugin loader pipeline.
semconv module
Server defines the main entrypoints to Grafana and the Grafana CLI, as well as test environments.
Server defines the main entrypoints to Grafana and the Grafana CLI, as well as test environments.
services
authapi
Package authapi contains the connector for Grafana internal auth service.
Package authapi contains the connector for Grafana internal auth service.
contexthandler
Package contexthandler contains the ContextHandler service.
Package contexthandler contains the ContextHandler service.
live/features
Package features is a generated GoMock package.
Package features is a generated GoMock package.
live/pipeline
Package pipeline is a generated GoMock package.
Package pipeline is a generated GoMock package.
live/runstream
Package runstream is a generated GoMock package.
Package runstream is a generated GoMock package.
ngalert/api
Package api contains base API implementation of unified alerting
Package api contains base API implementation of unified alerting
ngalert/api/tooling/definitions
Grafana Alerting API.
Grafana Alerting API.
ngalert/eval
Package eval executes the condition for an alert definition, evaluates the condition results, and returns the alert instance states.
Package eval executes the condition for an alert definition, evaluates the condition results, and returns the alert instance states.
ngalert/image
Package image is a generated GoMock package.
Package image is a generated GoMock package.
nolint
ngalert/state
Package state is a generated GoMock package.
Package state is a generated GoMock package.
org
pluginsintegration
package pluginsintegration instantiate the plugins package (pkg/plugins) and all of its services/dependencies that Grafana needs to provide plugin support.
package pluginsintegration instantiate the plugins package (pkg/plugins) and all of its services/dependencies that Grafana needs to provide plugin support.
pluginsintegration/adapters
Package adapters contains plugin SDK adapters.
Package adapters contains plugin SDK adapters.
pluginsintegration/cachekvstore
Package cachekvstore implements a key-value store that also keeps track of the last update time of the store.
Package cachekvstore implements a key-value store that also keeps track of the last update time of the store.
preference/prefapi
shared logic between httpserver and teamapi
shared logic between httpserver and teamapi
provisioning/values
Package values is a set of value types to use in provisioning.
Package values is a set of value types to use in provisioning.
rendering
Package rendering is a generated GoMock package.
Package rendering is a generated GoMock package.
screenshot
Package screenshot is a generated GoMock package.
Package screenshot is a generated GoMock package.
sqlstore
DO NOT ADD METHODS TO THIS FILES.
DO NOT ADD METHODS TO THIS FILES.
sqlstore/searchstore
Package searchstore converts search queries to SQL.
Package searchstore converts search queries to SQL.
tag
storage
unified/apistore
Package apistore provides an implementation of k8s.io/apiserver/pkg/storage.Interface that persists data into a [ResourceServer] (backend for unified storage)
Package apistore provides an implementation of k8s.io/apiserver/pkg/storage.Interface that persists data into a [ResourceServer] (backend for unified storage)
unified/resource
Package resource creates a ResourceServer that handles generic storage operations
Package resource creates a ResourceServer that handles generic storage operations
unified/sql/dbutil
Package dbutil provides utilities to perform common database operations and appropriate error handling.
Package dbutil provides utilities to perform common database operations and appropriate error handling.
tsdb
cloud-monitoring/time
Copied from https://github.com/capitalrx/grafana/blob/main/pkg/tsdb/intervalv2/intervalv2.go We're copying this to not block ourselves from decoupling until the conversation here is resolved https://raintank-corp.slack.com/archives/C05QFJUHUQ6/p1700064431005089
Copied from https://github.com/capitalrx/grafana/blob/main/pkg/tsdb/intervalv2/intervalv2.go We're copying this to not block ourselves from decoupling until the conversation here is resolved https://raintank-corp.slack.com/archives/C05QFJUHUQ6/p1700064431005089
loki/standalone command
cmd
web
Package macaron is a high productive and modular web framework in Go.
Package macaron is a high productive and modular web framework in Go.

Jump to

Keyboard shortcuts

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