Files
neon/compute/etc
Em Sharnoff 8b11e3bc9c compute/sql_exporter: Bump max WSS window from 1h -> 3h
Concretely, this:

1. Changes the normal (public) exporter to add a new 3-hour working set
   size label onto the existing 5-minute, 15-minute, and 1-hour values.

2. Extends the range on the autoscaling exporter from 1..60 minutes to
   1..180 minutes -- keeping the same density, just 3x longer.
2024-12-24 17:27:48 -08:00
..

Compute Configuration

These files are the configuration files for various other pieces of software that will be running in the compute alongside Postgres.

sql_exporter

Adding a sql_exporter Metric

We use sql_exporter to export various metrics from Postgres. In order to add a metric, you will need to create two files: a libsonnet and a sql file. You will then import the libsonnet file in one of the collector files, and the sql file will be imported in the libsonnet file.

In the event your statistic is an LSN, you may want to cast it to a float8 because Prometheus only supports floats. It's probably fine because float8 can store integers from -2^53 to +2^53 exactly.