Skip to content

Commit b3d2228

Browse files
authored
chore: add pgrest v12.2 metrics endpoint as adminapi upstream source on AIO (#1233)
1 parent 80d929b commit b3d2228

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Aside from having [ufw](https://help.ubuntu.com/community/UFW),[fail2ban](https:
5151
| Goodie | Version | Description |
5252
| ------------- | :-------------: | ------------- |
5353
| [PgBouncer](https://www.pgbouncer.org/) | [1.16.1](http://www.pgbouncer.org/changelog.html#pgbouncer-116x) | Set up Connection Pooling. |
54-
| [PostgREST](https://postgrest.org/en/stable/) | [v10.1.1](https://github.com/PostgREST/postgrest/releases/tag/v10.1.1) | Instantly transform your database into an RESTful API. |
54+
| [PostgREST](https://postgrest.org/en/stable/) | [v12.2.3](https://github.com/PostgREST/postgrest/releases/tag/v12.2.3) | Instantly transform your database into an RESTful API. |
5555
| [WAL-G](https://github.com/wal-g/wal-g#wal-g) | [v2.0.1](https://github.com/wal-g/wal-g/releases/tag/v2.0.1) | Tool for physical database backup and recovery. |
5656

5757
## Install

docker/all-in-one/etc/adminapi/adminapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ upstream_metrics_sources:
4242
value: {{ .ProjectRef }}
4343
- name: service_type
4444
value: gotrue
45+
- name: postgrest
46+
url: "http://localhost:3001/metrics"
47+
labels_to_attach:
48+
- name: supabase_project_ref
49+
value: {{ .ProjectRef }}
50+
- name: service_type
51+
value: postgrest
4552
monitoring:
4653
disk_usage:
4754
enabled: true

testinfra/test_ami.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
name: gotrue
6666
url: 'http://localhost:9122/metrics'
6767
labels_to_attach: [{name: supabase_project_ref, value: aaaaaaaaaaaaaaaaaaaa}, {name: service_type, value: gotrue}]
68+
-
69+
name: postgrest
70+
url: 'http://localhost:3001/metrics'
71+
labels_to_attach: [{name: supabase_project_ref, value: aaaaaaaaaaaaaaaaaaaa}, {name: service_type, value: postgrest}]
6872
monitoring:
6973
disk_usage:
7074
enabled: true

testinfra/test_ami_nix.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
name: gotrue
6666
url: 'http://localhost:9122/metrics'
6767
labels_to_attach: [{name: supabase_project_ref, value: aaaaaaaaaaaaaaaaaaaa}, {name: service_type, value: gotrue}]
68+
-
69+
name: postgrest
70+
url: 'http://localhost:3001/metrics'
71+
labels_to_attach: [{name: supabase_project_ref, value: aaaaaaaaaaaaaaaaaaaa}, {name: service_type, value: postgrest}]
6872
monitoring:
6973
disk_usage:
7074
enabled: true

0 commit comments

Comments
 (0)