Metrics and the access log
Prometheus metrics for requests, refusals and backlogs, and every request recorded in the region's access log.
Metrics
TESSARIDB_S3_METRICS_LISTEN makes the node serve GET /metrics in Prometheus text:
- requests by operation, status and error code, and their duration by size class;
- requests shed under load;
- authentication refusals by reason, and policy denials;
- the heal and replication backlogs;
- the cluster's members, and those answering a probe.
Backlogs and members are read at the scrape; s3_collect_up says whether that read
succeeded.
The node's state
| Series | What it says |
|---|---|
s3_build_info{version} | always 1; the server's version is the label |
s3_start_time_seconds | when the process started, Unix seconds |
s3_meta_probe_seconds | how long the metadata store took to answer a probe at the scrape |
s3_keys_vault{state} | 1 for the keys vault's state: unsealed, sealed or uninitialised |
s3_data_capacity_bytes, s3_data_free_bytes | the data drive's size and the space this process may still write |
s3_buckets, s3_objects, s3_stored_bytes | the latest usage measurement: buckets holding objects, objects, bytes |
s3_usage_taken_seconds | when that measurement was taken |
s3_uploads_open | multipart uploads not yet completed or aborted |
s3_daemon_runs_total{daemon,outcome} | background runs by daemon and outcome: succeeded, failed, timed_out |
s3_data_verification_failures_total | reads of this node's data files that failed verification |
Alert on s3_data_free_bytes well before it reaches the floor TESSARIDB_S3_DATA_MIN_FREE_BYTES
(1 GiB by default): below it the node refuses writes and keeps serving reads.
The access log
With TESSARIDB_S3_AUDIT=on (the default) every S3 request is recorded in the region's
s3_access_log topic in TessariDB, kept 30 days, under its request id: operation,
bucket, key, signing access key, status, error code, bytes, duration and client
address. It never holds a secret or a signature.
A full queue drops the record and counts it in the metrics; the request is never held
up. TESSARIDB_S3_AUDIT=off records nothing.
Read it with a topic consumer, as any TessariDB topic.