Open Coldboltage opened 2 days ago
This issue has been updated. As noted from the repository, we now have a system that is ready to operate with the previous version of the jobsbolt-api. Moving forward, we will take an infrastructure-first approach, which aims to sort out Terraform before anything else. This can be tested with Docker Compose to ensure all components work well together.
The focus now is to add Prometheus and Grafana, as the API already integrates with Sentry. This addition will allow us to track the application's behavior effectively while also testing our approach of setting up development infrastructure first, followed by adjusting the code to meet those infrastructure constraints.
Description
Currently, the development environment is set up and functioning well. The next step is to expand the monitoring capabilities by adding Prometheus and Grafana to the system. Grafana should be accessible on port
3001
externally while continuing to use port3000
internally. This change should coexist with the existing API setup, which also uses port3000
, with namespace isolation to ensure no conflicts.Objective
Add Prometheus and Grafana
Set up Prometheus for metrics collection and Grafana for visualization within the development environment. Ensure these tools are integrated smoothly, with proper access and port configurations.
Port Configuration for Grafana
3001
.3000
to maintain simplicity, considering namespace isolation to avoid conflicts with the API.Plan
Expand the current Terraform configuration to include Prometheus and Grafana. Ensure Prometheus is set up for metrics collection, and Grafana can visualize these metrics effectively.
Deployment Phases
Development:
Focus on adding Prometheus and Grafana to the development environment. Validate that the monitoring stack works without impacting existing components.
Future Considerations:
These changes will help form the basis for future staging and production environments. However, the focus is on development for now.
Steps to Implement
[ ] Add Prometheus to Development
[ ] Add Grafana to Development
3000
internally, but expose it on port3001
externally to avoid conflicts with the API.[ ] Testing and Validation
3001
externally and port3000
internally without conflicts.[ ] Document the Process
Secrets Management
Reason
Adding Prometheus and Grafana to the development environment enhances monitoring and observability, ensuring that all components are visible and working as expected. This helps in proactive identification of issues and prepares the groundwork for robust staging and production environments in the future.
Provider Configuration