Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nelsondev19/postgres-prom-grafana
How to monitoring PostgreSQL with Grafana, Prometheus and Docker Compose
https://github.com/nelsondev19/postgres-prom-grafana
docker grafana postgresql prometheus
Last synced: about 1 month ago
JSON representation
How to monitoring PostgreSQL with Grafana, Prometheus and Docker Compose
- Host: GitHub
- URL: https://github.com/nelsondev19/postgres-prom-grafana
- Owner: nelsondev19
- Created: 2023-11-23T14:12:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-29T21:09:00.000Z (about 1 year ago)
- Last Synced: 2024-02-02T23:14:14.655Z (11 months ago)
- Topics: docker, grafana, postgresql, prometheus
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Registered users in the current year
```sql
SELECT
TO_CHAR(created_at, 'Month') AS month,
COUNT(*) AS registered_users
FROM users
WHERE EXTRACT(YEAR FROM created_at) = EXTRACT(YEAR FROM CURRENT_TIMESTAMP)
GROUP BY TO_CHAR(created_at, 'Month')
ORDER BY TO_CHAR(created_at, 'Month') ASC;
```