0.1.12 • Published 3 years ago

axios-prometheus-adapter-poc v0.1.12

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago