We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1159e commit 4eaf4f5Copy full SHA for 4eaf4f5
packages/server/handler/misc.ts
@@ -58,6 +58,10 @@ class MetricsHandler extends AuthHandler {
58
notUsage = true;
59
60
async get() {
61
+ if (this.request.json) {
62
+ this.response.body = await registry.getMetricsAsJSON();
63
+ return;
64
+ }
65
this.response.body = await registry.metrics();
66
this.response.type = 'text/plain';
67
}
0 commit comments