Skip to content

Commit

Permalink
Extend Prometheus API Aliases (#442)
Browse files Browse the repository at this point in the history
* Update qryn_bun.mjs

Signed-off-by: Lorenzo Mangani <[email protected]>

* Alias /api/prom/push

Signed-off-by: Lorenzo Mangani <[email protected]>

---------

Signed-off-by: Lorenzo Mangani <[email protected]>
  • Loading branch information
lmangani authored Jan 29, 2024
1 parent 253e6d1 commit 94f049f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion qryn_bun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
3 changes: 2 additions & 1 deletion qryn_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 94f049f

Please sign in to comment.