0.1.12 • Published 2 years ago

axios-prometheus-adapter-poc v0.1.12

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

Usage

import {createAxiosPrometheusMiddleware, AdapterConfiguration} from "axios-prometheus-adapter-poc";
0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago