Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nuxt-prometheus-module

franckaragao5.1kMIT0.1.4

A nuxt module to export data to prometheus

nuxt, prometheus, metrics, prom-client

readme

nuxt-prometheus-module

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.

Setup

  1. Add the nuxt-prometheus-module dependency with yarn or npm to your project
  2. Add nuxt-prometheus-module to the modules section of nuxt.config.js
  3. Configure it:
{
  modules: [
    // Simple usage
    'nuxt-prometheus-module',

    // With options
    ['nuxt-maps-module', { /* module options */ }]
  ]
}

Options

path

Default: /metrics

Path where metrics will be available

port

Default: 9100

Port where metrics will be available

host

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"

metrics

Enable/Disable some metrics

collectDefault

Default: true

Send default metrics about nodejs itself. Pass object to send options to Prometheus.collectDefaultMetrics.

requestDuration

Default: true

Send request duration tile with routes.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.4 (2021-01-31)

Bug Fixes

0.1.3 (2021-01-31)

0.2.2 (2021-01-05)

Bug Fixes

0.2.1 (2021-01-05)

Features

Bug Fixes

0.1.7 (2021-01-04)

Bug Fixes

0.1.6 (2021-01-04)

Bug Fixes

  • Plugin: inject maps object in context nuxt (f6f7db7)

0.1.5 (2021-01-04)

Bug Fixes

  • Plugin: inject maps object in context nuxt (a97ec2c)

0.1.4 (2021-01-04)

Bug Fixes

  • Plugin: load script in plugin only (f166c1d)

0.1.4 (2021-01-04)

Bug Fixes

  • Plugin: load script in plugin only (f166c1d)

0.1.5 (2021-01-04)

0.1.4 (2021-01-04)

0.1.4 (2021-01-04)

0.1.6 (2021-01-04)

0.1.5 (2021-01-04)

0.1.4 (2021-01-04)

Bug Fixes

  • Plugin: load script in plugin only (f166c1d)

0.1.3 (2020-12-24)

0.1.2 (2020-12-24)

0.1.1 (2020-12-24)

Features

  • plugin: check change head script in serve (7b9f3ee)
  • plugin: support runtimeConfig (2e8b131)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.