Use this module to expose metrics to another port (you need to use nuxt start or nuxt dev).
This repo was forked from https://gitlab.com/qonfucius/nuxt-prometheus-module.
- Add the 
nuxt-prometheus-moduledependency withyarnornpmto your project - Add 
nuxt-prometheus-moduleto themodulessection ofnuxt.config.js - Configure it:
 
{
  modules: [
    // Simple usage
    'nuxt-prometheus-module',
    // With options
    ['nuxt-maps-module', { /* module options */ }]
  ]
}Default: /metrics
Path where metrics will be available
Default: 9100
Port where metrics will be available
Default: 127.0.0.1
Host to bind. Use 0.0.0.0 to be available everywhere, 127.0.0.1 mean "only available on the current host"
Enable/Disable some metrics
Default: true
Send default metrics about nodejs itself. Pass object to send options to Prometheus.collectDefaultMetrics.
Default: true
Send request duration tile with routes.
- Clone this repository
 - Install dependencies using 
yarn installornpm install - Start development server using 
npm run dev