utils

package
v0.0.0-...-38d6511 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GetMetricDataLabel = "get_metric_data"

Variables

View Source
var QueriesTotalCounter = promauto.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: "grafana_plugin",
		Name:      "aws_cloudwatch_queries_total",
		Help:      "Counter for AWS Queries",
	},
	[]string{"query_type"},
)

Functions

func BatchDataQueriesByTimeRange

func BatchDataQueriesByTimeRange(queries []backend.DataQuery) [][]backend.DataQuery

BatchDataQueriesByTimeRange separates the passed in queries into batches based on time ranges

func Pointer

func Pointer[T any](arg T) *T

func Stack

func Stack(skip int) string

Stack is copied from grafana/pkg/infra/log TODO: maybe this should live in grafana-plugin-sdk-go?

Types

This section is empty.

Jump to

Keyboard shortcuts

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