All checks were successful
Build and Publish TechDocs / build-and-publish (push) Successful in 1m13s
Change-Id: Ia7335da493265e251d60a899ce86eb8e483e41d6
140 lines
3.6 KiB
YAML
140 lines
3.6 KiB
YAML
apiVersion: backstage.io/v1alpha1
|
|
kind: Component
|
|
metadata:
|
|
name: alex-2
|
|
description: alex-2 component
|
|
annotations:
|
|
humanitec.com/orgId: skillful-wild-chicken-2617
|
|
humanitec.com/projectId: alex
|
|
cjot.io/target-domain: "apps"
|
|
cjot.io/system-name: "alex"
|
|
backstage.io/techdocs-ref: dir:.
|
|
backstage.io/kubernetes-namespace: alex-dev
|
|
backstage.io/kubernetes-label-selector: "app=alex-2"
|
|
gitea.kyndemo.live/repo-slug: "apps/alex-2"
|
|
sonarqube.org/project-key: alex-2
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: "8000"
|
|
prometheus.io/path: "/metrics"
|
|
grafana/grafana-instance: default
|
|
grafana/alert-label-selector: "app=alex-2"
|
|
|
|
grafana/dashboard-selector: "uid == 'otel-app-observability-v2'"
|
|
grafana.com/alert-label-selector: "app=alex-2"
|
|
grafana.com/dashboard-url: "https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=alex-2"
|
|
chaos-mesh/enabled: "true"
|
|
|
|
|
|
k6/enabled: "true"
|
|
k6/test-configmap: "k6-test-alex-2"
|
|
k6/test-namespace: "alex-dev"
|
|
k6/target-service: "alex-2"
|
|
k6/target-port: "8000"
|
|
|
|
tags:
|
|
- microservice
|
|
- golden-path
|
|
- python-fastapi
|
|
- stateless
|
|
|
|
- opentelemetry
|
|
|
|
|
|
- load-testing
|
|
- k6
|
|
|
|
links:
|
|
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/alex
|
|
title: Humanitec Console
|
|
icon: dashboard
|
|
|
|
- url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=alex-2
|
|
title: Grafana Dashboard
|
|
icon: dashboard
|
|
|
|
- url: https://gitea.kyndemo.live/apps/alex-2
|
|
title: Source Repository
|
|
icon: github
|
|
spec:
|
|
type: service
|
|
owner: group:default/platform-lead
|
|
system: system:default/alex
|
|
lifecycle: experimental
|
|
providesApis:
|
|
- alex-2-api
|
|
---
|
|
apiVersion: backstage.io/v1alpha1
|
|
kind: API
|
|
metadata:
|
|
name: alex-2-api
|
|
description: REST API for alex-2
|
|
annotations:
|
|
backstage.io/techdocs-ref: dir:.
|
|
spec:
|
|
type: openapi
|
|
lifecycle: experimental
|
|
owner: group:default/platform-lead
|
|
system: system:default/alex
|
|
definition: |
|
|
openapi: "3.0.0"
|
|
info:
|
|
title: alex-2
|
|
version: "0.1.0"
|
|
description: "alex-2 component"
|
|
servers:
|
|
- url: https://alex-2.kyndemo.live
|
|
paths:
|
|
/api/items:
|
|
get:
|
|
summary: List all items
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
post:
|
|
summary: Create item
|
|
responses:
|
|
"201":
|
|
description: Created
|
|
/api/items/{id}:
|
|
get:
|
|
summary: Get by ID
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
"404":
|
|
description: Not found
|
|
put:
|
|
summary: Update item
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
delete:
|
|
summary: Update item
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
responses:
|
|
"200":
|
|
description: Deleted
|
|
/health:
|
|
get:
|
|
summary: Health check
|
|
responses:
|
|
"200":
|
|
description: "{ status: UP }"
|