Skip to content

falcon646/node-swagger-stats-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

To run the app locally

# 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

To run the app via docker

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published