More Premium Hugo Themes Premium Nuxt Themes

Nuxt Prometheus

Prometheus metrics for NodeJS and a set of custom metrics for Nuxt applications

Nuxt Prometheus

Prometheus metrics for NodeJS and a set of custom metrics for Nuxt applications

Author Avatar Theme by artmizu
Github Stars Github Stars: 93
Last Commit Last Commit: Sep 21, 2025 -
First Commit Created: Dec 18, 2023 -
Nuxt Prometheus screenshot

Overview:

This article discusses the GitHub Workflow StatusCover, which is a Prometheus integration for Nuxt 3. This integration allows users to better understand the performance of their application and offers insights on how to optimize it in production. It is compatible with Nuxt 2 as well. However, there is a limitation in calculating request time due to the @mswjs/interceptors package. The article also provides information on default features and custom metrics that can be obtained from this integration.

Features:

  • Default NodeJS metrics exported through the Prometheus middleware
  • Custom metrics about pages render time and external request consumption time
  • Health check middleware
  • Default routes that can be customized via the module options
  • Prometheus metrics
  • Health check

Installation:

To install the GitHub Workflow StatusCover, follow these steps:

  1. Install the package using a package manager:

    npm install github-workflow-statuscover
    
  2. Add the package to the modules section of your Nuxt configuration file:

    modules: [
      'github-workflow-statuscover'
    ]
    
  3. Configure the options of the module by passing them through the module options and the nuxt config property:

    • prometheus.verbose (Type: boolean, Default: true): Additional logs in the development mode, providing information about page rendering time and time of external API requests.
    • healthCheck (Type: boolean, Default: true): Enable or disable the health check route.
    • healthCheckPath (Type: string, Default: ‘/health’): Set the path for the health check URL.
    • prometheusPath (Type: string, Default: ‘/metrics’): Set the path for the Prometheus exporter URL.

Summary:

The GitHub Workflow StatusCover is a Prometheus integration for Nuxt 3, which allows users to gain insights into their application’s performance and optimize it in production. With features such as default NodeJS metrics, custom metrics for page render time and request consumption time, and a health check middleware, users can better understand and improve their application. The installation process involves installing the package, adding it to the Nuxt configuration file, and configuring the module options as per the requirements.