PostgreSQL
Server metrics, the server log and slow statements.
MetricsLogsAvailable
What you get
Metrics and logs, arriving through OpenTelemetry Collector (postgresql receiver and server log) over OTLP.
Set it up
- Create a read-only monitoring user on PostgreSQL, as the install guide shows.
- Install the OpenTelemetry Collector (contrib) on a host that can reach the database.
- Copy the PostgreSQL recipe from the install guide; it reads the monitoring password and your Epok key from the collector's environment file.
- Start the collector. Metrics and new server-log lines reach Epok over OTLP within a minute.
The commands and configuration for each step are on the setup guide.
What was tested
- Code tests of the ingest route or the sender: 2 tests.
- No run against the hosted service is recorded yet.
What you see in Epok
- Metrics: browse, chart and alert on every series by its labels.
- Explore and Live tail: search, patterns and new errors.
Troubleshooting
- No metrics: check the collector's own log for connection or authentication errors from the receiver.
- TLS errors: the recipe verifies the server certificate; point ca_file at the CA that signed it.