mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-13 18:33:55 -05:00
[PR #1309] [CLOSED] add prometheus metrics #1374
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1309
Author: @hyperdefined
Created: 6/2/2025
Status: ❌ Closed
Base:
main← Head:prometheus📝 Commits (8)
df2dcbcfeat: add prometheus metricsad7d78afeat: allow port change of metrics69ca909api/core: expose metrics statusc9dc352api/core: redirect all other requests to metrics0e8c527docs/api-env-variables: add metrics vars77c4e13api/core: bind on localhost87b92a7metrics: support clustersdb7930emetrics: make sure we listen correctly📊 Changes
7 files changed (+159 additions, -9 deletions)
View changed files
📝
api/package.json(+1 -0)📝
api/src/core/api.js(+41 -2)📝
api/src/core/env.js(+3 -0)➕
api/src/misc/metrics.js(+50 -0)📝
api/src/processing/match.js(+6 -0)📝
docs/api-env-variables.md(+21 -0)📝
pnpm-lock.yaml(+37 -7)📄 Description
this PR adds prometheus compatible metrics. this is a replacement PR for #436.
this does have some issues, like if the stream returns 0, it doesn't count it as an error (should look into).
this shouldn't break privacy policy, as nothing identifiable is tracked. however, instances that have it enabled should tell web to add it to the privacy policy, or include in popup about the instance.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.