Telemetry

PgCache collects anonymous telemetry to help us understand how the software is being used. Telemetry is enabled by default and can be disabled at any time.

What We Collect

A small JSON payload is sent once at startup and then every 24 hours:

{
  "id": "a1b2c3d4-random-uuid",
  "version": "0.6.1",
  "pg_version": "16.2",
  "os": "linux",
  "arch": "x86_64",
  "deployment": "docker",
  "event": "heartbeat",
  "metrics": {
    "cached_queries": 12,
    "cache_hit_rate_pct": 72,
    "queries_served_24h": 15000,
    "uptime_hours": 168
  }
}
FieldDescription
idRandom UUID generated at startup. Not persisted — each restart generates a new ID.
versionPgCache version number
pg_versionPostgreSQL version of the origin database
os / archOperating system and CPU architecture
deploymentdocker or bare-metal
eventstartup (first ping) or heartbeat (every 24h)
cached_queriesNumber of queries currently cached
cache_hit_rate_pctCache hit rate as a percentage (0-100)
queries_served_24hApproximate queries served since last heartbeat
uptime_hoursHours since PgCache started

What We Never Collect

  • SQL query text or query plans
  • Table names, column names, or schema information
  • Database credentials or connection strings
  • IP addresses (not stored by the telemetry endpoint)
  • Hostnames or environment variables
  • Row data or query results

Why We Collect It

  • Understand how many active PgCache instances exist
  • Know which PostgreSQL versions to prioritize for compatibility
  • See whether users are getting value from the cache (hit rates)
  • Guide development priorities based on real usage patterns

How to Disable

Any of the following methods will disable telemetry:

Environment variable (recommended for Docker):

PGCACHE_TELEMETRY=off

TOML configuration file:

telemetry = false

CLI argument:

pgcache --telemetry_off ...

The try script:

curl -fsSL https://pgcache.com/try.sh | bash -s -- --no-telemetry

When telemetry is disabled, no network requests are made and no data is sent.

The Try Script

Each download of https://pgcache.com/try.sh is counted, because a curl | bash run is invisible to page analytics. status and stop download the script again, so they count too. This is separate from the telemetry above and --no-telemetry does not change it: it happens on our web server when the script is served, before anything runs on your machine.

One event is recorded per download:

  • country, region and city as estimated by Cloudflare, and the Cloudflare data center that served the request
  • network (AS number and name)
  • the User-Agent and Referer headers, and whether the client looks like curl, wget, a browser or a bot
  • the request method, response status and site hostname
  • a random ID generated for that one event

Your IP address is not part of the event, and events are not linked to each other or to a person.

Technical Details

  • Telemetry runs on a dedicated background thread and never affects proxy performance
  • All network requests use a 10-second timeout and failures are silently ignored
  • The instance ID is generated in memory at startup and not persisted to disk
  • Data is sent via HTTPS POST to telemetry.pgcache.com