Skip to main content
Databunker Pro exposes Prometheus metrics at GET /metrics. That covers the application tier. Two things it does not cover — licence usage and database health — come from elsewhere, and both are ways a healthy-looking instance can still fail.
/metrics is served without authentication. It reveals which API methods are in use and at what volume, so bind it to an internal interface, or restrict it at the ingress or load balancer. Do not expose it publicly.

Scrape configuration

On Kubernetes, target the pods rather than the service so each instance is scraped individually — a single unhealthy replica behind a load balancer is otherwise invisible.

What is exposed

path carries the matched route (/v2/UserCreate), and anything unmatched is bucketed as other, so cardinality stays bounded no matter what scanners send.
The duration histogram is labelled by method and path but not by status, so latency cannot be split by response code. Alert on error rate and latency separately.

Alert rules

Why these thresholds. The p95 figure comes from the benchmarks: UserGet measured ~15 ms p95 against a fully-loaded 10 M-record vault. Sustained latency several times that usually means the database index no longer fits in RAM — check the cache-hit ratio before adding application instances.
A 403 spike is ambiguous and worth investigating rather than ignoring. The same status code covers a failing API token, a policy denial, Record limit reached when the licence cap is hit, and License expired when the licence lapses. The metric cannot distinguish them — check the response messages in your application logs.

Licence usage

Nothing in /metrics reports how full the vault is. SystemGetSystemStats does:
Alert on two things, both of which fail silently until a write is refused:
  • totalnumrecords / licensemaxrecords crossing 80%
  • licensefinalexpiration coming within 30 days
A scheduled job that polls this and exports the values to your metrics system closes the gap. See licensing and limits.

Database health

The benchmarks show that beyond tens of millions of records the database is the limit, not Databunker Pro. Two figures matter, and both come from your provider rather than from Databunker Pro:
  • Database CPU above 70% — adding application instances will not raise write throughput past this point; size the database up instead.
  • Index cache-hit ratio below 97% — the benchmark held ≥97% at every scale. Below that, lookups start reading from disk and detokenisation latency climbs.

Audit trail

The audit trail is a compliance control, not a debug log. Its failure mode is silence, so treat a gap in audit records as an incident rather than a monitoring nuisance — a period of activity with no corresponding audit entries is the signal to look for.

Next steps