The Crane Cloud Monitoring API provides a backend service for monitoring resource usage (CPU, memory, network) within a Kubernetes environment. It interfaces with Prometheus to fetch and aggregate metrics data.
- RESTful API endpoints to fetch metrics for projects and applications.
- Integration with Prometheus for metrics collection.
- Docker containerization for easy deployment and scaling.
- Helm charts for Kubernetes deployments.
- Docker and Docker Compose
- Python 3.10
- Helm 3 for Kubernetes deployment
- Access to a Kubernetes cluster (for staging/production environments)
-
Clone the repository:
git clone https://github.com/crane-cloud/monitoring-api.git cd monitoring-api
-
Environment Variables:
Copy the
.env.example
to.env
and modify the environment variables according to your local setup. -
Start the application:
Use Docker Compose to build and run the local development environment:
make start
This command builds the Docker image and starts the services defined in
docker-compose.yml
.
Swagger documentation is available once the application is running, accessible at /apidocs
.