/metrics endpoint on the REST API port (default 6333) that serves metrics in Prometheus/OpenMetrics format. Use these metrics to monitor REST API usage, process health, application status, and collection statistics.
Scrape configuration
Add VectorAI DB as a Prometheus scrape target. The following example shows a minimalprometheus.yml configuration:
localhost with the service name:
The
/metrics endpoint does not require authentication. If you expose it on a public network, restrict access with a firewall rule or reverse proxy.Available metrics
The following sections describe every metric exposed by the/metrics endpoint, grouped by category. All metrics use the prefix actian_vectorai_. The full metric name is actian_vectorai_<name>. For example, actian_vectorai_collections_total, actian_vectorai_rest_responses_total. In tables, the prefix may be omitted from metric names for space considerations.
Label Keys
Prometheus Naming Rules Applied
- Counters end in
_total. - Duration histograms end in
_duration_seconds(base unit: seconds). - Memory gauges end in
_bytes. - Boolean state gauges have a descriptive suffix (
_running,_mode).
Application info
These metrics expose application identity and operational state.Collection metrics
These metrics provide visibility into collection sizes, vector counts, point counts, and optimization state.Rebuild metrics
These metrics track index rebuild operations across all collections.Snapshot
These metrics track snapshot creation and recovery operations.REST API
These metrics track HTTP request volume and latency across all REST endpoints.
Use
actian_vectorai_rest_responses_total to track request rates and error ratios. Use actian_vectorai_rest_responses_duration_seconds to compute percentile latencies (p50, p95, p99) per endpoint.
gRPC API
These metrics track gRPC call volume and latency.Combined API
These metrics track combined requests and latency for REST and gRPC.Process metrics
These metrics report on the health of the VectorAI DB process at the operating system level, including memory usage from the allocator.- The metric
actian_vectorai_process_memory_free_bytesis sourced directly from the operating system (WindowsGlobalMemoryStatusEx, Linuxsysinfo). It reflects machine-wide available RAM, independent of the process’s own usage metrics.
Example PromQL queries
The following Prometheus Query Language examples demonstrate common monitoring patterns that you can use in Grafana or any Prometheus-compatible dashboard tool.REST request rate by endpoint
REST error ratio
REST p95 latency per endpoint
gRPC request rate by method
gRPC error ratio
Memory usage
Total vectors across all collections
Points per collection
Active rebuilds
Rebuild success rate
Recommended alerts
The following table lists suggested Prometheus alerting rules for production deployments.Replace
<memory_limit> and <fd_limit> with the actual limits for your deployment environment.Example alerting rule
The following Prometheus alerting rule fires when the REST error ratio exceeds 5% for more than 5 minutes:Logging
VectorAI DB writes structured logs to stdout. Configure the log format and level to suit your log aggregation pipeline.Log format
Set the log format tojson for machine-readable output compatible with log aggregation tools such as Elasticsearch, Loki, or Datadog:
text, which is human-readable but harder to parse programmatically.
Log level
Control log verbosity with thelevel setting:
Next steps
Explore these related guides to learn more.Troubleshooting
Diagnose connection, performance, and startup issues.
Error handling
Handle specific gRPC error codes in your application code.
Docker installation
Container setup, volume mounts, and Docker Compose configuration.
License and upgrade
Manage license keys and upgrade your VectorAI DB deployment.