labbsr0x / prom-expressjs

Small repo with a full example of how to use NodeJS prom-client with ExpressJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prom-expressjs

Small repo with a full example of how to use NodeJS prom-client with ExpressJS

run

Type on terminal to run:

> npm i
> npm start

Or just:

> docker build
> docker run -d -p 23498:23498 labbsr0x/prom-expressjs:latest

Even better:

> docker-compose up --build

Then go to any random path on port 23498, e.g. http://localhost:23498/myname.

The request will be registered by Prometheus and can be viewed at http://localhost:23498/metrics.

About

Small repo with a full example of how to use NodeJS prom-client with ExpressJS

License:MIT License


Languages

Language:JavaScript 46.4%Language:Shell 30.5%Language:Dockerfile 23.1%