You can read more on my medium article.
Grafana
- Analytics and monitoring platformDocker
- Containerized Application DeploymentPostgreSQL
- Relational Database Management
Docker Compose
- Multi-Container Orchestration
git clone https://github.com/ricardohsmello/grafana-docker.git
cd grafana-docker
docker-compose up -d
- http://localhost:3000
- username = admin
- password = admin
SELECT
product_name,
SUM(revenue) AS value
FROM
sales_data
GROUP BY
product_name
SELECT
product_name,
SUM(units_sold) AS value
FROM
sales_data
GROUP BY
product_name
SELECT
sale_date AS time,
SUM(units_sold) AS total_sales
FROM
sales_data
GROUP BY
sale_date
select product_name,
MAX(stock_available) AS value
FROM
sales_data
GROUP BY
product_name