Version 3.12.1

3.8.1. Server config

Server mode was added to nxs-backup to export metrics in Prometheus-compatible format.

When running backup jobs, metrics are collected and saved to a special temporary file located at the configured path.

In server mode, nxs-backup reads this file and outputs the metrics in Prometheus-compatible format.

Here is an example of a metrics server config:

server_name: wp-server
project_name: My Best Project

server:
  bind: ":7979"
  metrics: 
    enabled: true
    metrics_file_path: "/tmp/nxs-backup.metrics"

In this example nxs-backup running in server mode will listen on port 7979 and handle requests from any IP, giving metrics at the /metrics path.