From 94f049f70d225b306f7c795fc9083f9f05a9fa2b Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Mon, 29 Jan 2024 09:59:42 +0100 Subject: [PATCH] Extend Prometheus API Aliases (#442) * Update qryn_bun.mjs Signed-off-by: Lorenzo Mangani * Alias /api/prom/push Signed-off-by: Lorenzo Mangani --------- Signed-off-by: Lorenzo Mangani --- qryn_bun.mjs | 3 ++- qryn_node.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qryn_bun.mjs b/qryn_bun.mjs index bffb00e2..6153f796 100644 --- a/qryn_bun.mjs +++ b/qryn_bun.mjs @@ -247,7 +247,8 @@ export default async() => { '/api/v1/prom/remote/write', '/api/prom/remote/write', '/prom/remote/write', - '/api/v1/write' + '/api/v1/write', + '/api/prom/push' ] for (const path of remoteWritePaths) { fastify.post(path, promWriteHandler, { diff --git a/qryn_node.js b/qryn_node.js index eef0d569..57057fa2 100755 --- a/qryn_node.js +++ b/qryn_node.js @@ -99,7 +99,8 @@ let fastify = require('fastify')({ '/api/prom/remote/write', '/prom/remote/write', '/loki/api/v1/push', - '/api/v1/write' + '/api/v1/write', + '/api/prom/push' ] fastify.addHook('preParsing', (request, reply, payload, done) => { if (snappyPaths.indexOf(request.routeOptions.url) !== -1) {