This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
Shows content of simple counter metric with buttons to increment
- one uses server action from client component
- one uses server action passed from RSC to client component
GET endpoint to read metrics for prometheus POST endpoint to allow increment