https://github.com/ducin/hello-nodejs-postgresql-rabbitmq
https://github.com/ducin/hello-nodejs-postgresql-rabbitmq
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ducin/hello-nodejs-postgresql-rabbitmq
- Owner: ducin
- Created: 2024-12-20T21:09:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T12:33:55.000Z (over 1 year ago)
- Last Synced: 2025-04-09T07:42:05.380Z (about 1 year ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# run
docker system df
docker-compose up --build
docker volume rm $(docker volume ls -f dangling=true -q)
docker-compose up --build --force-recreate
For docker-compose the correct way to remove volumes would be `docker-compose down --volumes` or `docker-compose down --rmi all --volumes`.
prometheus metrics:
- `rabbitmq_queue_messages` - Current queue size
- `rate(rabbitmq_queue_messages_published_total[5m])` - Message publish rate
- `rabbitmq_queue_consumers` - Number of consumers
## postgres
psql -U myuser -d mydatabase
/var/lib/pgadmin/storage/admin_example.com/...
```sql
-- List all databases
\l
-- or
SELECT datname FROM pg_database;
-- Connect to a specific database
\c mydatabase
-- List all tables in current database
\dt
-- or more detailed view
\dt+
-- or SQL equivalent
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public';
-- Show detailed information about a specific table
\d+ table_name
```