mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
23 lines
493 B
Go
23 lines
493 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"github.com/prometheus/client_golang/prometheus"
|
||
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Labels for the metric counter query types
|
||
|
|
||
|
ListMetricsLabel = "list_metrics"
|
||
|
GetMetricDataLabel = "get_metric_data"
|
||
|
)
|
||
|
|
||
|
var QueriesTotalCounter = promauto.NewCounterVec(
|
||
|
prometheus.CounterOpts{
|
||
|
Namespace: "grafana_plugin",
|
||
|
Name: "aws_cloudwatch_queries_total",
|
||
|
Help: "Counter for AWS Queries",
|
||
|
},
|
||
|
[]string{"query_type"},
|
||
|
)
|