Skip to content

Commit 21579b0

Browse files
committed
docs(usage-view): rename example table in postgres, make it clear it's not a graphql api
Signed-off-by: Michal Wasilewski <michal@mwasilewski.net>
1 parent d0ef8e8 commit 21579b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/product/billing/usage.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Usage data can be downloaded:
1111

1212
- from the Usage page: Organization Settings -> Other -> Usage
1313
- using [spacectl](https://github.com/spacelift-io/spacectl) command: `spacectl profile usage-csv`
14-
- via the Spacelift API
14+
- via the Spacelift API at `https://<your-spacelift-host>/usageanalytics/csv` (note: this is not a graphql endpoint)
1515

1616
## Analyzing Usage Data
1717

@@ -20,7 +20,7 @@ Usage data can be downloaded:
2020
Create a table for worker count and load the CSV file into the table:
2121

2222
```sql
23-
create table worker_info (
23+
create table worker_count (
2424
id int,
2525
count int,
2626
timestamp_unix int,
@@ -29,7 +29,7 @@ create table worker_info (
2929
```
3030

3131
```shell
32-
psql -h <host> -U <user> -d <database> -c "\copy worker_info from '<path-to-csv-file>' delimiter ',' csv header"
32+
psql -h <host> -U <user> -d <database> -c "\copy worker_count from '<path-to-csv-file>' delimiter ',' csv header"
3333
```
3434

3535
And the same for run minutes:

0 commit comments

Comments
 (0)