add generic dashboard setup #51
No reviewers
Labels
No labels
operations
simulator api
tests
web app
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
DevOpps/minitwit!51
Loading…
Reference in a new issue
No description provided.
Delete branch "35-add-monitoring"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.ymlports:- "9090:9090"what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
@ -29,0 +38,4 @@grafana:image: grafana/grafana:latestports:- "3000:3000"what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
@ -0,0 +4,4 @@- name: Prometheustype: prometheusaccess: proxyurl: http://prometheus:9090what happens with the port if there are 2 deployments online at the same time❓ (blue-green)
@ -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
87b0a01d1ato26942834e826942834e8c55d6be062We manually merged it into main for weird conflict reasons (
3a9252eca6)