Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
```