Skip to content

Monitoring PrivateBin

El RIDO edited this page Sep 14, 2023 · 2 revisions

This page contains resources for monitoring your PrivateBin instance.

Grafana Dashboard

PrivateBin NGINX JSON Access Log dashboard provides statistics for tracking user activity on your PrivateBin instance. It allows you to monitor the creation and access of pastes.

  • Grafana Dashboard ID: 19507
  • For details about this dashboard and instructions on how to deploy it, please visit blog post.

Statistics Provided by the Adminstration Script

PrivateBin includes an administrative script which can collect statistics on the pastes. This will open and read all pastes' metadata on your installation, which can take some time and is I/O intensive. You can execute it from within the bin directory of your installation or from your running container image (where we add it to the PATH). Example output:

$ docker exec -t <your PrivateBin container name here> administration --statistics
Total:			35749
.................................... 10% .................................... 20% .................................... 30% ................................... 40% .................................... 50% .................................... 60% .................................... 70% ................................... 80% .................................... 90% ...................................
Expired:		61
Burn after reading:	427
Discussions:		1866
Plain Text:		30806
Source Code:		1996
Markdown:		2947

It took around 1m 15s to collect the above results.