SSE: (Instrumentation/Chore) Add datasource_type label to grafana_sse (#72370)

SSE: (Instrumentation/Chore) Add datasource_type label to the grafana_sse_ds_queries_total metric
This commit is contained in:
Kyle Brandt
2023-07-26 10:51:02 -04:00
committed by GitHub
parent 6f3dfb2d8b
commit ceb694f165
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ func (m *MLNode) Execute(ctx context.Context, now time.Time, _ mathexp.Vars, s *
}
logger.Debug("Data source queried", "responseType", responseType)
useDataplane := strings.HasPrefix("dataplane-", responseType)
s.metrics.dsRequests.WithLabelValues(respStatus, fmt.Sprintf("%t", useDataplane)).Inc()
s.metrics.dsRequests.WithLabelValues(respStatus, fmt.Sprintf("%t", useDataplane), mlPluginID).Inc()
}()
// Execute the command and provide callback function for sending a request via plugin API.