feat:
--Added sproket status (experimental)
This commit is contained in:
1 parent
da354286d3
commit
df12fb5188
2 files changed
+142
-19
No files matched your search
+36
-15
@@ -251,20 +251,20 @@ psql "postgresql://postgres_exporter:postgres@172.16.10.178:5444/postgres"
|
||||
|FEATURES COMPLETED TODAY|
|
||||
|========================|
|
||||
|
||||
| Requirement | `postgres_exporter` | What you need |
|
||||
| ----------------------- | ------------------: | --------------------------------- |
|
||||
| Connections | ✅ | postgres_exporter |
|
||||
| Transactions | ✅ | postgres_exporter |
|
||||
| Locks | ✅/⚠️ | PostgreSQL metrics/custom query |
|
||||
| Blocking sessions | ⚠️ | Custom PostgreSQL query |
|
||||
| Deadlocks | ✅ | postgres_exporter |
|
||||
| Long-running queries | ⚠️ | `pg_stat_activity` / custom query |
|
||||
| WAL | ✅ | postgres_exporter |
|
||||
| Database health | ✅ | postgres_exporter + Prometheus |
|
||||
| PostgreSQL CPU usage | ❌ | cAdvisor / process monitoring |
|
||||
| PostgreSQL memory usage | ❌ | cAdvisor / process monitoring |
|
||||
| Storage/disk usage | ❌ | node_exporter / cAdvisor |
|
||||
| Network usage | ❌ | node_exporter / cAdvisor |
|
||||
| Requirement | `postgres_exporter` | What you need |
|
||||
| ----------------------- | ------------------: | --------------------------------- |
|
||||
| Connections | ✅ | postgres_exporter |
|
||||
| Transactions | ✅ | postgres_exporter |
|
||||
| Locks | ✅/⚠️ | PostgreSQL metrics/custom query |
|
||||
| Blocking sessions | ⚠️ | Custom PostgreSQL query |
|
||||
| Deadlocks | ✅ | postgres_exporter |
|
||||
| Long-running queries | ⚠️ | `pg_stat_activity` / custom query |
|
||||
| WAL | ✅ | postgres_exporter |
|
||||
| Database health | ✅ | postgres_exporter + Prometheus |
|
||||
| PostgreSQL CPU usage | ❌ | cAdvisor / process monitoring |
|
||||
| PostgreSQL memory usage | ❌ | cAdvisor / process monitoring |
|
||||
| Storage/disk usage | ❌ | node_exporter / cAdvisor |
|
||||
| Network usage | ❌ | node_exporter / cAdvisor |
|
||||
|
||||
|
||||
|==================|
|
||||
@@ -326,7 +326,7 @@ postgres=# SELECT *
|
||||
FROM spock.replication_set;
|
||||
|
||||
|===============================|
|
||||
|CREATE A TABLE NOT USING SPROKE|
|
||||
|CREATE A TABLE USING SPROKE|
|
||||
|===============================|
|
||||
SELECT spock.replicate_ddl(
|
||||
$$
|
||||
@@ -339,7 +339,22 @@ CREATE TABLE public.vm2_ddl_test (
|
||||
$$
|
||||
);
|
||||
|
||||
|===============================|
|
||||
|OR NOT USING SPROKE|
|
||||
|===============================|
|
||||
ALTER SYSTEM SET spock.enable_ddl_replication = on;
|
||||
ALTER SYSTEM SET spock.include_ddl_repset = on;
|
||||
|
||||
SELECT pg_reload_conf();
|
||||
---------
|
||||
VERIFY IT
|
||||
---------
|
||||
SHOW spock.enable_ddl_replication;
|
||||
SHOW spock.include_ddl_repset;
|
||||
|
||||
|===============================|
|
||||
WTF IS THIS!!!
|
||||
|===============================|
|
||||
To check if provider is sending data
|
||||
postgres=# SELECT
|
||||
slot_name,
|
||||
@@ -349,4 +364,10 @@ postgres=# SELECT
|
||||
confirmed_flush_lsn
|
||||
FROM pg_replication_slots;
|
||||
|
||||
|===========|
|
||||
| CHECK ACE |
|
||||
|===========|
|
||||
|
||||
sudo docker compose run --rm ace \
|
||||
table-diff cluster1 public.test_replication \
|
||||
--nodes=node1,node2,node3
|
||||
Reference in new issue
Block a user