0.1.5 • Published 2 years ago

axios-prometheus-adapter-poc2 v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Prometheus adapter for axios

Local test

  1. start a local docker image on your computer:
    docker run \
    -p 9090:9090 \
    -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml \
    prom/prometheus
    In the prometheus.yml set the example server url to enable metrics scraping of your application
  2. Build the package source code:
    npm run build
  3. Start example file which makes two http requests and use adapter to create prometheus logs on the /metrics route:
    node .\dist\example\axiosRequest.js