mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-07 06:00:38 +00:00
How to use it on a pageserver, or, a machine that is running pageserver through `neon_local` 1. Create a postgres database from somewhere (not the pageserver you want to scrape). E.g., neon.tech. 2. Prepare a `scraper.env`, based on `scraper.env.example` 3. Perform the following steps ``` $ source scraper.env # load schema into your db $ ./pg_install/v14/bin/psql < scraper.db.schema.sql # start the scraper and watch log output $ poetry run python scraper.py ALL ``` Then watch the data pile up in the database, and do something useful with it in the future (TM).
7 lines
238 B
Plaintext
7 lines
238 B
Plaintext
export PGUSER=scraper-staging
|
|
export PGPASSWORD=...
|
|
export PGHOST=ep-....eu-central-1.aws.neon.tech
|
|
export PGDATABASE=scraper-staging
|
|
export SCRAPE_ENDPOINT=http://localhost:9898
|
|
export SCRAPE_ENVIRONMENT=staging
|
|
export SCRAPE_INTERVAL=99 |