logologo
Get Started
Guide
Development
Plugins
API
Home
English
简体中文
日本語
한국어
Español
Português
Deutsch
Français
Русский
Italiano
Türkçe
Українська
Tiếng Việt
Bahasa Indonesia
ไทย
Polski
Nederlands
Čeština
العربية
עברית
हिन्दी
Svenska
Get Started
Guide
Development
Plugins
API
Home
logologo

Logger

Server logs
Server logs, Audit Logs, Record history

Telemetry

Manual

Exporter

HTTP
Prometheus
Previous PageHTTP

#Telemetry Exporter: Prometheus

This feature is provided by the plugin «Telemetry: Prometheus», included in Enterprise Edition and above commercial editions

#Environment Variables

#TELEMETRY_METRIC_READER

Telemetry metric exporter type.

TELEMETRY_METRIC_READER=prometheus

#TELEMETRY_PROMETHEUS_SERVER

Whether to start a standalone server.

  • off: The scrape endpoint is /api/prometheus:metrics.
  • on: The scrape endpoint is host:port:metrics.
TELEMETRY_PROMETHEUS_SERVER=off

#TELEMETRY_PROMETHEUS_PORT

Port for the standalone server, default is 9464.

TELEMETRY_PROMETHEUS_PORT=9464

#Prometheus Configuration

Using the NocoBase internal API:

scrape_configs:
  - job_name: 'nocobase'
    metrics_path: '/api/prometheus:metrics'
    static_configs:
      - targets: ['localhost:13001']

Using the standalone server:

scrape_configs:
  - job_name: 'nocobase'
    static_configs:
      - targets: ['localhost:9464']