4.3 KiB
title, generated_by, generated_at, human_edited, source_entity, source_repo
| title | generated_by | generated_at | human_edited | source_entity | source_repo |
|---|---|---|---|---|---|
| sonar-test-nest4 | documentor-agent | 2026-05-18T10:03:38+00:00 | false | Component/default/sonar-test-nest4 | https://gitea.kyndemo.live/validate/sonar-test-nest4 |
Overview
sonar-test-nest4 is a stateless microservice built using the typescript-nestjs runtime. It was scaffolded from the Create Microservice golden-path template on the Kyndryl Platform. The service provides a REST API for managing items, including CRUD operations, and exposes observability endpoints for health checks and Prometheus metrics.
This service plays a key role in the broader system by offering a scalable and observable backend for item management. It is deployed using Humanitec's API-driven deployment model, leveraging Azure Kubernetes Service (AKS) and Azure Container Registry (ACR). The CI/CD pipeline automates builds, tests, and deployments across development, staging, and production environments.
Repository
| Field | Value |
|---|---|
| Source Repo | validate/sonar-test-nest4 |
| Branch | dev |
| ArgoCD App | — |
| Namespace | dev |
Architecture
sonar-test-nest4 follows a modern microservice architecture with the following components:
- Runtime:
typescript-nestjs - Container Port:
3000 - Endpoints:
/api/itemsfor CRUD operations/healthfor health checks/metricsfor Prometheus metrics
- Deployment Flow:
- Push to
dev,staging, orprodtriggers CI/CD workflows:build-push.yml: Builds and tests the service, then pushes the container image to Azure Container Registry.deploy-humanitec.yml: Deploys the service to AKS using Humanitec's Score-based deployment model.
- Push to
- Branch Model:
dev: Active development, auto-deploys to the dev environment.staging: Pre-production, promoted fromdevvia PR.prod: Production, promoted fromstagingvia PR.main: System of record, receives merges fromprod.
Configuration
| Config Key | Value |
|---|---|
runtime |
typescript-nestjs |
health_path |
/health |
container_port |
3000 |
Operations
Deployment Steps
- Push changes to the
devbranch for automatic deployment to the dev environment. - Open a PR to promote changes from
devtostaging. Ensure CI tests pass and obtain one approval. - Open a PR to promote changes from
stagingtoprod. Ensure CI tests pass and obtain one approval. - Merge changes from
prodtomainfor system-of-record updates.
Observability Endpoints
/health: Returns{"status":"UP"}for health checks./metrics: Exposes Prometheus metrics for monitoring.
Observability
- Grafana Dashboard: Opentelemetry Application Observability
- Prometheus Metrics: Enabled (
/metricsendpoint). - Chaos Mesh: Enabled for resilience testing.
- K6 Load Testing: Configured via
k6-test-sonar-test-nest4in thedevnamespace.
Dependencies
api:default/sonar-test-nest4-api