This repository hosts a Prometheus metrics exporter for Paperless-ngx, a document management system transforming physical documents into a searchable online archive. The exporter relies on Paperless' REST API.
An implementation using the API was chosen to provide the same perspective as web browsers.
prometheus-paperless-exporter
listens on TCP port 8081 by default. To listen on
another address use the -web.listen-address
flag (e.g.
-web.listen-address=127.0.0.1:3000
).
TLS and HTTP basic authentication is supported through the Prometheus exporter
toolkit. A configuration file can be passed to the -web.config
flag
(documentation).
See the --help
output for more flags.
Since late 2023 Paperless-ngx supports object permissions. The metrics user requires view permissions on the following types:
Pre-built binaries are provided for all releases:
.tar.gz
).deb
).rpm
).zip
)Docker images via GitHub's container registry. The image supports Linux/AMD64 and Linux/ARM64.
docker pull ghcr.io/hansmi/prometheus-paperless-exporter
It's also possible to produce custom builds directly using Go or GoReleaser.
An example configuration for Docker Compose is available in
contrib/docker-compose
:
env --chdir contrib/docker-compose docker-compose up