CloudWatch: Remove references to pkg/infra/metrics (#81744)

CloudWatch: remove references to pkg/infra/metrics
This commit is contained in:
Isabella Siu
2024-02-06 21:21:55 +02:00
committed by GitHub
parent aafff73899
commit 3b852bb582
4 changed files with 26 additions and 35 deletions
+22
View File
@@ -0,0 +1,22 @@
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"},
)