KRAUT - a prometheus exporter for Kong API usage
Following scripts are available to you (in the package.json):
start
Starts the webserver (executes lib/index.js)start:watch
Same asstart
but restarts when file changes are detectedbuild
Compliles the typescript sources to javascriptbuild:docker
Builds sources, packages them into a docker image and push it to the DockerHub repositorytest
Runs all specstest:coverage
Runs all specs and generates a coverage reportwatch
Same as build but stays active and watches for file changes
You can run them using yarn run [script]
Run the the following:
yarn run start:generator
By default it sends logs to http://localhost:3000
- if you want to change the endpoint set the environment variable
ENDPOINT=http://kaut.url yarn run start:generator