Skip to content

Commit

Permalink
Merge pull request #4555 from luke-h1/dev
Browse files Browse the repository at this point in the history
merge dev into main
  • Loading branch information
luke-h1 authored Oct 26, 2024
2 parents 2117eec + fbfcc68 commit b91776b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"git-cz": "^4.9.0",
Expand Down
19 changes: 9 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/app/api/metrics/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register, collectDefaultMetrics } from 'prom-client';

export async function GET() {
return new Response(await register.metrics(), {
status: 200,
headers: {
'Content-Type': register.contentType,
},
});
}

collectDefaultMetrics({
prefix: 'lhowsam',
});

0 comments on commit b91776b

Please sign in to comment.