axios-prometheus-adapter-poc
v0.1.12
Published
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 m
Downloads
24
Readme
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
Usage
import {createAxiosPrometheusMiddleware, AdapterConfiguration} from "axios-prometheus-adapter-poc";