Coldboltage / jobsbolt-terraform

The terraform files for Jobsbolt Infrustructure
0 stars 0 forks source link

Add Prometheus and Grafana to dev #1

Open Coldboltage opened 2 days ago

Coldboltage commented 2 days ago

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 port 3000 internally. This change should coexist with the existing API setup, which also uses port 3000, with namespace isolation to ensure no conflicts.

Objective

Plan

Deployment Phases

  1. Development:
    Focus on adding Prometheus and Grafana to the development environment. Validate that the monitoring stack works without impacting existing components.

  2. 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

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


provider "kubernetes" {
  config_path = "~/.kube/config" # Adjust to match the user's local Kubernetes configuration
}
Coldboltage commented 12 hours 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.