0.1.5 • Published 2 years ago
axios-prometheus-adapter-poc2 v0.1.5
Prometheus adapter for axios
Local test
- start a local docker image on your computer:
In the prometheus.yml set the example server url to enable metrics scraping of your applicationdocker run \ -p 9090:9090 \ -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus
- Build the package source code:
npm run build
- Start example file which makes two http requests and use adapter to create prometheus logs on the /metrics route:
node .\dist\example\axiosRequest.js
0.1.5
2 years ago