No description
Find a file
Michael Hanselmann f2cc188833
Some checks failed
Run tests / test (push) Has been cancelled
Release / release (push) Has been cancelled
Initial commit
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-07-03 00:16:08 +02:00
.github Initial commit 2023-07-03 00:16:08 +02:00
contrib Initial commit 2023-07-03 00:16:08 +02:00
internal Initial commit 2023-07-03 00:16:08 +02:00
.gitignore Initial commit 2023-07-03 00:16:08 +02:00
.goreleaser.yml Initial commit 2023-07-03 00:16:08 +02:00
collector.go Initial commit 2023-07-03 00:16:08 +02:00
collector_test.go Initial commit 2023-07-03 00:16:08 +02:00
correspondent.go Initial commit 2023-07-03 00:16:08 +02:00
correspondent_test.go Initial commit 2023-07-03 00:16:08 +02:00
documenttype.go Initial commit 2023-07-03 00:16:08 +02:00
documenttype_test.go Initial commit 2023-07-03 00:16:08 +02:00
go.mod Initial commit 2023-07-03 00:16:08 +02:00
go.sum Initial commit 2023-07-03 00:16:08 +02:00
LICENSE Initial commit 2023-07-03 00:16:08 +02:00
log.go Initial commit 2023-07-03 00:16:08 +02:00
log_test.go Initial commit 2023-07-03 00:16:08 +02:00
main.go Initial commit 2023-07-03 00:16:08 +02:00
multicollector.go Initial commit 2023-07-03 00:16:08 +02:00
README.md Initial commit 2023-07-03 00:16:08 +02:00
storagepath.go Initial commit 2023-07-03 00:16:08 +02:00
storagepath_test.go Initial commit 2023-07-03 00:16:08 +02:00
tag.go Initial commit 2023-07-03 00:16:08 +02:00
tag_test.go Initial commit 2023-07-03 00:16:08 +02:00
task.go Initial commit 2023-07-03 00:16:08 +02:00
task_test.go Initial commit 2023-07-03 00:16:08 +02:00

Paperless-ngx metrics for Prometheus

Latest release Release workflow CI workflow Go reference

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.

Usage

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.

Installation

Pre-built binaries are provided for all releases:

  • Binary archives (.tar.gz)
  • Debian/Ubuntu (.deb)
  • RHEL/Fedora (.rpm)
  • Microsoft Windows (.zip)

Docker images via GitHub's container registry:

docker pull ghcr.io/hansmi/prometheus-paperless-exporter

With the source being available it's also possible to produce custom builds directly using Go or GoReleaser.