This is a simple nodejs express application to demonstartate the /swagger-stats/metrics
enpoint to expose application metrics
This repo was used a demo purpose to make prometheus moniter our cutsom application running in kubernetes cluster
# install dependencies]
npm install
# start the server on localhost
npm start
# the server starts and listens on port 3000
- Once the server is running , you can access the metrics at
http://localhost:3000/swagger-stats/metrics
# build the image
docker build -t nodeswaggerstatsmetrics .
# run a container from the above image
docker run --name nodemetricsdemo -d -p 3000:3000 nodeswaggerstatsmetrics
# the server starts and listens on port 3000
- Once the server is running , you can access the metrics at
http://localhost:3000/swagger-stats/metrics