Skip to content

Commit

Permalink
Ignore Qdrant metrics label (#5253)
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd authored May 23, 2024
1 parent 734bf3a commit 10b6f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alerting/temporal/src/qdrant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ async function fetchPrometheusMetrics(

// Parse and update metric values.
metricLines.forEach((line) => {
const [metricName, metricValue] = line.split(" ");
const [metricPart, metricValue] = line.split(" ");
// Extract metric name, ignoring any labels if present.
const [metricName] = metricPart.split("{", 1);

const timestamp = Math.floor(Date.now() / 1000);

Expand Down

0 comments on commit 10b6f36

Please # to comment.