add generic dashboard setup #51

Closed
balthazar wants to merge 8 commits from 35-add-monitoring into main
Owner

This PR closes #35

Some this is vibe coded, part of it is boilerplate, part of it is dumb luck on my part.

Here is a guide that describes part of the setup, skip the rust server setup part:
https://carlosmv.hashnode.dev/how-to-monitor-your-axum-app-with-prometheus-and-grafana

This PR closes #35 Some this is _vibe coded_, part of it is boilerplate, part of it is dumb luck on my part. Here is a guide that describes part of the setup, skip the rust server setup part: https://carlosmv.hashnode.dev/how-to-monitor-your-axum-app-with-prometheus-and-grafana
@ -29,0 +32,4 @@
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
marfavi marked this conversation as resolved
@ -29,0 +38,4 @@
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
marfavi marked this conversation as resolved
@ -0,0 +4,4 @@
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)

what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
marfavi marked this conversation as resolved
@ -0,0 +4,4 @@
scrape_configs:
- job_name: 'minitwit'
static_configs:
- targets: ['minitwit:5001']

it can be 5001 or 5002 depending on the colour deployed

it can be 5001 or 5002 depending on the colour deployed
marfavi marked this conversation as resolved
marfavi force-pushed 35-add-monitoring from 87b0a01d1a to 26942834e8
Some checks failed
Lint / Clippy (push) Successful in 1m1s
Lint / Rustfmt (push) Failing after 28s
Lint / Hadolint (push) Successful in 4s
Lint / Clippy (pull_request) Successful in 1m0s
Lint / Rustfmt (pull_request) Failing after 27s
Lint / Hadolint (pull_request) Successful in 5s
2026-03-27 12:54:52 +01:00
Compare
marfavi force-pushed 35-add-monitoring from 26942834e8
Some checks failed
Lint / Clippy (push) Successful in 1m1s
Lint / Rustfmt (push) Failing after 28s
Lint / Hadolint (push) Successful in 4s
Lint / Clippy (pull_request) Successful in 1m0s
Lint / Rustfmt (pull_request) Failing after 27s
Lint / Hadolint (pull_request) Successful in 5s
to c55d6be062
Some checks failed
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Failing after 1m0s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 5s
2026-03-27 13:39:52 +01:00
Compare
Format project
All checks were successful
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Successful in 1m2s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 4s
813a0ca95c
I have set up the SeaORM database entity files for all our tables and linked them to main.rs. Syntax is checked and passing. Next step will be replacing the raw SQL queries.

Fixes #33

Co-authored-by: MudiLoodi <[email protected]>
Co-authored-by: Omid Marfavi <[email protected]>
Co-authored-by: marfavi <[email protected]>
Reviewed-on: #43
Reviewed-by: balthazar <[email protected]>
Reviewed-by: marfavi <[email protected]>
Co-authored-by: Imaz Naseem <[email protected]>
Co-committed-by: Imaz Naseem <[email protected]>
minor edits only

deploying.md was not updated to avoid conflict with #44. the reference to the migration script will be removed when that PR is merged anyway

Reviewed-on: #45
Reviewed-by: felix <[email protected]>
Co-authored-by: Omid Marfavi <[email protected]>
Co-committed-by: Omid Marfavi <[email protected]>
update Cargo.locl
All checks were successful
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Successful in 2m59s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 5s
8ca770a0c9
Move monitoring stack from compose.yml into new file; add Makefile targets; Make scrape port dynamic based on local/deployed instance; Add step to Ansible
All checks were successful
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Successful in 47s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 5s
879d6a6ca0
feat: add SeaORM entities for database abstraction (#43)
All checks were successful
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Successful in 3m5s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 5s
46c9de8abb
I have set up the SeaORM database entity files for all our tables and linked them to main.rs. Syntax is checked and passing. Next step will be replacing the raw SQL queries.

Fixes #33

Co-authored-by: MudiLoodi <[email protected]>
Co-authored-by: Omid Marfavi <[email protected]>
Co-authored-by: marfavi <[email protected]>
Reviewed-on: #43
Reviewed-by: balthazar <[email protected]>
Reviewed-by: marfavi <[email protected]>
Co-authored-by: Imaz Naseem <[email protected]>
Co-committed-by: Imaz Naseem <[email protected]>
Revert "feat: add SeaORM entities for database abstraction (#43)"
All checks were successful
Static analysis / Check Rust code with Clippy and rustfmt (pull_request) Successful in 42s
Static analysis / Check Dockerfile with Hadolint (pull_request) Successful in 4s
291bc4b591
This reverts commit 46c9de8abb.
Owner

We manually merged it into main for weird conflict reasons (3a9252eca6)

We manually merged it into main for weird conflict reasons (3a9252eca6)
marfavi closed this pull request 2026-03-27 16:17:27 +01:00
marfavi deleted branch 35-add-monitoring 2026-05-11 11:54:23 +02:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
DevOpps/minitwit!51
No description provided.