Skip to content

Commit

Permalink
Fix Qdrant metrics url (#5263)
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd authored May 24, 2024
1 parent cbf82a2 commit 5d0cba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alerting/temporal/src/qdrant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function fetchPrometheusMetrics(
const [, node, clusterName] = found;

try {
const response = await axios.get(`${clusterNodeUrl}:6333/metrics`, {
const response = await axios.get(`${clusterNodeUrl}/metrics`, {
headers: {
"api-key": QDRANT_MONITORING_API_KEY,
},
Expand Down Expand Up @@ -130,6 +130,7 @@ async function fetchPrometheusMetrics(
...Object.entries(labels).map(([key, value]) => `${key}:${value}`),
];

// Use the raw metric name to determine if it should be reported.
if (QDRANT_METRICS_TO_WATCH.gauge_metrics.includes(name)) {
metrics.push({
metric: metricName,
Expand Down

0 comments on commit 5d0cba1

Please sign in to comment.