Prometheus: Refactor exemplar sampler (#60278)

This commit is contained in:
Todd Treece
2022-12-30 13:04:35 -05:00
committed by GitHub
parent ce8512ace7
commit 73d5aa4878
12 changed files with 4880 additions and 241 deletions
+12 -1
View File
@@ -1,6 +1,10 @@
package models
import "github.com/grafana/grafana-plugin-sdk-go/data"
import (
"time"
"github.com/grafana/grafana-plugin-sdk-go/data"
)
type ResultType string
@@ -40,3 +44,10 @@ func ResultTypeFromFrame(frame *data.Frame) ResultType {
func (r ResultType) String() string {
return string(r)
}
type Exemplar struct {
SeriesLabels map[string]string
Labels map[string]string
Value float64
Timestamp time.Time
}